O
Oliver Betz
Hi,
is this a Windows or ActivePerl (I'm using 5.8.2) bug?
(stat())->mtime reports 3600 more or less if the file is in the other
daylight savings state than the system time.
For example, the stat->mtime results if Windows is in timezone UTC
without daylight savings (Casablanca...):
1970-01-01 10:00:00Z -> 36000 (as expected)
1970-07-01 10:00:00Z -> 15674400 (as expected)
In a Timezone with daylight savings, system date in winter, I get
36000 and 15670800 (one hour less) for the same files.
In a Timezone with daylight savings, system date in summer, I get
39600 (one hour more) and 15674400 for the same files.
All tests done on NTFS drives. No difference whether it's a local file
or via network. Same results with newer dates, but I liked the smaller
mtime numbers for the demonstration.
Who tweaks the file time, Perl or Windows?
mtime should be constant, shouldn't it?
Oliver
is this a Windows or ActivePerl (I'm using 5.8.2) bug?
(stat())->mtime reports 3600 more or less if the file is in the other
daylight savings state than the system time.
For example, the stat->mtime results if Windows is in timezone UTC
without daylight savings (Casablanca...):
1970-01-01 10:00:00Z -> 36000 (as expected)
1970-07-01 10:00:00Z -> 15674400 (as expected)
In a Timezone with daylight savings, system date in winter, I get
36000 and 15670800 (one hour less) for the same files.
In a Timezone with daylight savings, system date in summer, I get
39600 (one hour more) and 15674400 for the same files.
All tests done on NTFS drives. No difference whether it's a local file
or via network. Same results with newer dates, but I liked the smaller
mtime numbers for the demonstration.
Who tweaks the file time, Perl or Windows?
mtime should be constant, shouldn't it?
Oliver