You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$httpDate is not formated correctly on non english systems (Mac OS X for example):
%a 3 char weekday is localized.
I have added the following lines to have the script working:
$httpDate is not formated correctly on non english systems (Mac OS X for example):
%a 3 char weekday is localized.
I have added the following lines to have the script working:
my @wd = ("0", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun");
my $wn = $wd[strftime("%u", gmtime )];
my $httpDate = POSIX::strftime(", %d %b %Y %H:%M:%S +0000", gmtime );
$httpDate = $wn . $httpDate;
The text was updated successfully, but these errors were encountered: