On Sun, 2009-05-10 at 22:03 +0400, Alexey Pechnikov wrote:
> Hello!
> 
> On Sunday 10 May 2009 21:15:03 Tom Jackson wrote:
> > Alexey: you can use the nstclsh shell to test if changing the locale
> > makes any difference (in same location as your nsd file):
> > 
> > ./bin/nstclsh
> > % set ::env(LANG) en_US.UTF-8
> > % ns_httptime 0
> > Thu, 01 Jan 1970 00:00:00 GMT
> > % 
> 
> I'm get wrong result:
> 
> $ nstclsh
> % set ::env(LANG) en_US.UTF-8
> en_US.UTF-8
> % ns_httptime 0
> Thu, 1 Jan 1970 00:00:00 GMT
> %

I wonder if you have to set this before your start nstclsh?

Anyway, whatever is causing the problem has to do with your setup. At
least you can test it with nstclsh and once solved there should work for
your AOLserver install.

You might also see what my replacement proc produces, or just try in
nstclsh:

% set seconds 0
0
% clock format $seconds -format "%a, %d %b %Y %H:%M:%S %Z" -gmt 1

If that works/doesn't you might also try whatever tclsh came with your
system.

But I just noticed something strange:

% ns_parsehttptime [ns_httptime 0] 
invalid time: Thu, 01 Jan 1970 00:00:00 GMT
% ns_parsehttptime "Thu, 01 Jan 1970 00:00:00 GMT"
invalid time: Thu, 01 Jan 1970 00:00:00 GMT
% ns_parsehttptime "Thu, 1 Jan 1970 00:00:00 GMT"
invalid time: Thu, 1 JAn 1970 00:00:00 GMT

On the last one, notice that the month gets converted to JAn. 

Strange.

tom jackson


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to