-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gets time wrong at the end of daylight savings #17
Comments
This bug was actually a little stranger than reported. It actually got the DST change right once, then got it wrong for several hours:
Unfortunately I'm pretty sure the issue is inside the Time::Local module or my use of it in a way I don't understand. Fortunately, 20 years later, I now recognize that my use of Time::Local was silly and I just replaced the whole thing with POSIX::strftime, which works a treat. Here's the new output:
|
The issue was originally caused by 434f494, which was at attempt to fix timezone handling but mistakenly ended up localizing the text strings in the date, which was incorrect Localizing the strings introduced characted issues for some locales that prevented the text from being rendered properly (specifically seen in cs_CZ.UTF-8) but only in some perls (did not happen in perl 5.18.4 (system) or 5.32.0 (brew) on macOS 10.15.6. DID show up in perl 5.28.1 (system) on Debian 10.5. If the fix for un-localizing the date had worked (3a95aa0), the character rendering issue also would have been fixed. However, the fix worked on macOS and failed on Debian, the same as above. So, this commit is a fix for #17 that doesn't incorrectly introduce localized dates, which in turn caused #25.
Hello,
this is https://bugs.debian.org/955798 reported Russell Coker:
Swaks (oder the perl libraries it uses) does not get the start of DST right:
The TZ offset in the date header jumps from +1100 to +1000 at about 13:00.
Russel describes the behavior as follows:
Before 13:00 Swaks is taking the current human readable time but applying the timezone offset from yesterday when daylight savings was running. [...] It seems that swaks (or maybe the Perl libraries it uses) was about 10 or 11 hours late in recognising the daylight savings change. Maybe it thought
that the early morning daylight savings time change meant early morning UTC not early morning in my timezone.
The text was updated successfully, but these errors were encountered: