1
Fork 0

Fix invalid UTC offset during datetime parsing (#823)

This commit is contained in:
Yo Sev 2024-03-30 07:57:21 +01:00 committed by GitHub
parent 31ccb9aad3
commit 9c85663522
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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