mirror of https://github.com/perkeep/perkeep.git
images: fix broken test
Exif.DateTime now always returns a time.Local location when zone is unknown. Change-Id: I898516398a88bc8dcd8daf26f87c801a24cc1d7a
This commit is contained in:
parent
077763fcbb
commit
a68f8df380
|
@ -273,7 +273,7 @@ func TestDateTime(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
exifTimeLayout := "2006:01:02 15:04:05"
|
||||
want, err := time.Parse(exifTimeLayout, "2012:11:04 05:42:02")
|
||||
want, err := time.ParseInLocation(exifTimeLayout, "2012:11:04 05:42:02", time.Local)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue