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()`
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
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
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