Backend: Don't use UTC as unknown time zone
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
8612e22a40
commit
3da7719728
2 changed files with 1 additions and 3 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue