Closed blues1875 closed 2 years ago
This PR should fix it: #20064
Excellent, @xenu! That fixed it for me. Applying your fix to blead gave me a clean build in my timezone. For my little test setup I now get this:
(UTC) Co-ordinated Universal Time
5.32: Thu Jan 1 00:00:00 1970
5.34: Thu Jan 1 00:00:00 1970
blead: Thu Jan 1 00:00:00 1970
--------------------------------
(UTC-03:00) Greenland
5.32: Wed Dec 31 23:59:59 1969
5.34: Thu Jan 1 00:00:00 1970
blead: Thu Jan 1 00:00:00 1970
--------------------------------
(UTC-03:00) Brasilia
5.32: Wed Dec 31 23:59:59 1969
5.34: Thu Jan 1 01:00:00 1970
blead: Thu Jan 1 00:00:00 1970
--------------------------------
(UTC+03:00) Istanbul
5.32: Thu Jan 1 00:00:00 1970
5.34: Wed Dec 31 23:59:59 1969
blead: Thu Jan 1 00:00:00 1970
--------------------------------
(UTC+10:00) Brisbane
5.32: Thu Jan 1 00:00:00 1970
5.34: Thu Jan 1 00:00:00 1970
blead: Thu Jan 1 00:00:00 1970
--------------------------------
Description https://github.com/Perl/perl5/commit/b277e767f3a3d9af20f138a95c26625cf2dfb53a was introduced to fix a long-standing problem with Daylight Savings Time on Win32 (https://github.com/Perl/perl5/issues/6080). The fix was successful in some combinations of time and time zone, but introduced problems in others. These symptoms are seen in the time zones shown with perl 5.32.0 and 5.34.0 on Windows 10:
Steps to Reproduce The following code in three files: stat_test.pl
stat_test.bat
sub.bat
Observed behavior
When the variable $mtime is changed like this:
the observed output is:
Expected behavior
and
Perl configuration