Backend: Don't use UTC as unknown time zone

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-04-29 02:22:59 +02:00
parent 8612e22a40
commit 3da7719728
2 changed files with 1 additions and 3 deletions

View file

@ -455,8 +455,6 @@ func (m *Photo) SetTakenAt(taken, local time.Time, zone, source string) {
if zone != "" {
m.TimeZone = zone
} else {
m.TimeZone = time.UTC.String()
}
}

View file

@ -201,7 +201,7 @@ func (ind *Index) MediaFile(m *MediaFile, o IndexOptions, originalName string) (
}
if photo.TakenAt.IsZero() || photo.TakenAtLocal.IsZero() {
photo.SetTakenAt(m.DateCreated(), m.DateCreated(), time.UTC.String(), entity.SrcAuto)
photo.SetTakenAt(m.DateCreated(), m.DateCreated(), "", entity.SrcAuto)
}
if fileChanged || o.UpdateKeywords || o.UpdateLocation || o.UpdateTitle || photo.NoTitle() {