From a68f8df380b1996113a37fabc07d6e5de1565661 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 14 Jul 2014 09:36:48 -0700 Subject: [PATCH] images: fix broken test Exif.DateTime now always returns a time.Local location when zone is unknown. Change-Id: I898516398a88bc8dcd8daf26f87c801a24cc1d7a --- pkg/images/images_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/images/images_test.go b/pkg/images/images_test.go index 292e6d748..bdcc3d8cd 100644 --- a/pkg/images/images_test.go +++ b/pkg/images/images_test.go @@ -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) }