Re: mydate.strftime('%x') and cgi script

2006-03-24 Thread Sibylle Koczian
Marc 'BlackJack' Rintsch schrieb: > In <[EMAIL PROTECTED]>, Sibylle Koczian wrote: > >> >>The web server is on my machine - doesn't it use its regional settings? > > > The settings are per user and stored in environment variables. Apache > clears most of them at start. > > > > `setlocale()`

Re: mydate.strftime('%x') and cgi script

2006-03-21 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Sibylle Koczian wrote: >>>I'm writing a cgi script which only needs to run in a small LAN. I tried >>>to show dates in a reasonable format by using >>> >> >> That's the web server's locale appropriate date representation then. >> > > The web server is on my machine - doe

Re: mydate.strftime('%x') and cgi script

2006-03-20 Thread Sibylle Koczian
Marc 'BlackJack' Rintsch schrieb: > In <[EMAIL PROTECTED]>, Sibylle Koczian wrote: > > >>I'm writing a cgi script which only needs to run in a small LAN. I tried >>to show dates in a reasonable format by using >> > > That's the web server's locale appropriate date representation then. > The we

Re: mydate.strftime('%x') and cgi script

2006-03-15 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Sibylle Koczian wrote: > I'm writing a cgi script which only needs to run in a small LAN. I tried > to show dates in a reasonable format by using > > import locale > import datetime > > locale.setlocale(locale.LC_ALL, '') > ... > dt = datetime.date.today() > print dt.strf