in reply to Re: DateTime not observing $ENV{TZ} by default?
in thread DateTime not observing $ENV{TZ} by default?

Thanks, DateTime ignores it though.

So is explicit argument to constructor the only way to do it? Doesn't seem very Perlish to me :-)

  • Comment on Re^2: DateTime not observing $ENV{TZ} by default?

Replies are listed 'Best First'.
Re^3: DateTime not observing $ENV{TZ} by default?
by Anonymous Monk on Jul 21, 2011 at 02:46 UTC

    So is explicit argument to constructor the only way to do it?

    Yes, its the only way; you could create alternate constructor, or propose a patch for one

    Doesn't seem very Perlish to me :-)

    Why? time doesn't consult ENV{TZ} and neither does gmtime -- The module is called DateTime not, localtime :)