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 :)
In reply to Re^3: DateTime not observing $ENV{TZ} by default?
by Anonymous Monk
in thread DateTime not observing $ENV{TZ} by default?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |