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

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 :)

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