On Monday September 20 2004 5:39, Tom Lane wrote:
> "Ed L." <pgsql(at)bluepolka(dot)net> writes:
> > + /*
> > + * We expect a strftime(%z) result of the form "[+-]HHMM"
> > according to + * RFC822-conformant dates, where HH:MM is the
> > unsigned UTC offset. + * If we don't get it, just return zero
> > offset, and let the logs + * rotate on UTC time boundaries.
> > + */
> > +
> > + count = strftime(msg, 6, "%z", localtime(&now));
> That might work for you, but it's not portable.
Bummer. Typo as well. Suggest a portable way to get the offset?
In response to
pgsql-patches by date
|Next:||From: Ed L.||Date: 2004-09-20 23:54:58|
|Subject: Re: log_filename_prefix --> log_filename + strftime()|
|Previous:||From: Tom Lane||Date: 2004-09-20 23:39:59|
|Subject: Re: log_filename_prefix --> log_filename + strftime() |