Re: Timezone for %t log_line_prefix - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Timezone for %t log_line_prefix
Date
Msg-id 41122C77.8050204@dunslane.net
Whole thread Raw
In response to Re: Timezone for %t log_line_prefix  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers

Greg Stark wrote:

>Tom Lane <tgl@sss.pgh.pa.us> writes:
>
>  
>
>>However, this is probably a bit more work than is reasonable to
>>undertake right now, when we're already overdue for beta.  For the
>>moment I'm really thinking that we ought to just #ifdef out the %Z
>>on Windows, and plan to do something nicer in 8.1.
>>    
>>
>
>Could it just print numeric time zones on windows?
>
>  
>

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_strftime.2c_.wcsftime.asp

says this about strftime:

*%z*, *%Z*   Either the time-zone name or time zone abbreviation, depending on   registry settings; no characters if
timezone is unknown
 

So I don't think we can.

One thought I did have was that we could force UTC on Windows as a quick 
fix.

cheers

andrew




pgsql-hackers by date:

Previous
From: "Jonathan M. Gardner"
Date:
Subject: Re: Open items
Next
From: Gaetano Mendola
Date:
Subject: No such file or directory during PITR