Skip to content

Commit 4596b80

Browse files
committed
my_strftime(): Properly take daylight savings into account
Because of the bug fixed in the previous commit, this function was changed in 5.42 to have a work around, which is no longer needed.
1 parent 125aba8 commit 4596b80

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

locale.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8242,7 +8242,6 @@ Perl_my_strftime(pTHX_ const char *fmt, int sec, int min, int hour,
82428242
PERL_ARGS_ASSERT_MY_STRFTIME;
82438243
PERL_UNUSED_ARG(wday);
82448244
PERL_UNUSED_ARG(yday);
8245-
PERL_UNUSED_ARG(isdst);
82468245

82478246
#ifdef USE_LOCALE_TIME
82488247
const char * locale = querylocale_c(LC_TIME);
@@ -8251,7 +8250,7 @@ Perl_my_strftime(pTHX_ const char *fmt, int sec, int min, int hour,
82518250
#endif
82528251

82538252
struct tm mytm;
8254-
ints_to_tm(&mytm, locale, sec, min, hour, mday, mon, year, 0);
8253+
ints_to_tm(&mytm, locale, sec, min, hour, mday, mon, year, isdst);
82558254
if (! strftime_tm(fmt, PL_scratch_langinfo, locale, &mytm)) {
82568255
return NULL;
82578256
}

0 commit comments

Comments
 (0)