code: func exifDateTimeInLocation(x *exif.Exif, loc *time.Location) (time.Time, error) {
  	tag, err := x.Get(exif.DateTimeOriginal)
  	if err != nil {
  		tag, err = x.Get(exif.DateTime)
  		if err != nil {
  			return time.Time{}, err
  		}
  	}
  	if tag.Format() != tiff.StringVal {
  		return time.Time{}, errors.New("DateTime[Original] not in string format")
  	}
  	const exifTimeLayout = "2006:01:02 15:04:05"
  	dateStr := strings.TrimRight(string(tag.Val), "\x00")
  	return time.ParseInLocation(exifTimeLayout, dateStr, loc)
  }
docs: // This is basically a copy of the exif.Exif.DateTime() method, except:
  //   * it takes a *time.Location to assume
  //   * the caller already assumes there's no timezone offset or GPS time
  //     in the EXIF, so any of that code can be ignored.