Skip to content
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

Connection fails from non english servers #1

Open
olyves opened this issue Mar 22, 2013 · 1 comment
Open

Connection fails from non english servers #1

olyves opened this issue Mar 22, 2013 · 1 comment

Comments

@olyves
Copy link

olyves commented Mar 22, 2013

$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;

@mblahay
Copy link

mblahay commented Dec 5, 2019

Was this ever fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants