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:
Brad Fitzpatrick 2014-07-14 09:36:48 -07:00
parent 077763fcbb
commit a68f8df380
1 changed files with 1 additions and 1 deletions

View File

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