TZ setting must contain an offset.
authorCraig A. Berry <craigberry@mac.com>
Mon, 30 Mar 2009 12:27:34 +0000 (07:27 -0500)
committerCraig A. Berry <craigberry@mac.com>
Mon, 30 Mar 2009 12:27:34 +0000 (07:27 -0500)
Per the standard at:

http://www.opengroup.org/onlinepubs/7990989775/xbd/envvar.html

ext/Time-Piece/t/02core.t

index 7c1495d..7ca22a9 100644 (file)
@@ -48,7 +48,7 @@ cmp_ok($t->daylight_savings, '==', 0);
 
 # ->tzoffset?
 {
-    local $ENV{TZ} = "EST";
+    local $ENV{TZ} = "EST5";
     Time::Piece::_tzset();  # register the environment change
     my $lt = localtime;
     cmp_ok(scalar($lt->tzoffset), 'eq', '-18000');