ikegami and you are both right! It came to be a rather simple fix, but interesting still.
Here's what happened. When the last DST patch came along from Windows they did not have one for Win2k (non-paying that is). There was a 3rd party fix, that for whatever reason did not work, after I installed some security updates. I manually disabled the DST setting in my Windows Time, and simply dropped the time down an hour. Hence, the "is Daylight Savings" flag being zero.
When I turned on the "Daylight Savings" mode checkbox, my system jumps ahead an hour.
use DateTime;
use DateTime::TimeZone;
my $dt = DateTime->now; # same as ( epoch => time() )
print( $dt->hms, "\n" );
$dt->set_time_zone( 'America/New_York' );
print( $dt->hms, "\n" );
$dt->set_time_zone( 'EST' );
print( $dt->hms, "\n" );
#Results (With the DST enabled AND disabled..Doesnt matter).
01:10:49
21:10:49
20:10:49
This is more of a system issue at this point and not a Perl problem, but if anyone has any advice I would be appreciative.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.