Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I simply switched my own personal timezone to UTC. My watch is set to UTC, my PC timezone is set to UTC, my TZ variables everywhere I go are set to UTC, my Wikipedia preferences are set to UTC, my forum preferences many places on the net are set to UTC. I know when the sun rises and sets. I'm always reminded to convert timestamps for the benefit of my coworkers, 100% of whom are all distributed across the other three continental U.S. timezones. The hardest part is twice a year when I have to remember the change in offset.

    Thank you for pointing out the time_zone => 'local' option. I don't believe I'd noticed that. Interestingly enough, I just tested, and when I do this under Cygwin after unsetting my TZ variable, it comes out to my local timezone. I wonder how it knows; Windows is set to UTC. Probably some administrator-set option somewhere. (Seems like at one time DateTime couldn't figure out my local timezone on its own.)

    BTW, if the proposed solution's only drawback is that it touches a lot of files, and you've come up with an alternative which also requires touching a lot of files and some additional work and is slightly substandard, why not just go with the proposed solution? You have to touch all those files anyway.

    J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers