Fix invalid UTC offset during datetime parsing (#823)
This commit is contained in:
parent
31ccb9aad3
commit
9c85663522
|
@ -122,7 +122,7 @@ func (p *externalExifParser) ParseExif(media_path string) (returnExif *models.Me
|
|||
found_exif = true
|
||||
newExif.DateShot = &dateTime
|
||||
} else {
|
||||
layoutWithOffset := "2006:01:02 15:04:05+02:00"
|
||||
layoutWithOffset := "2006:01:02 15:04:05-07:00"
|
||||
dateTime, err = time.Parse(layoutWithOffset, date)
|
||||
if err == nil {
|
||||
found_exif = true
|
||||
|
|
Loading…
Reference in New Issue