Re: Timezone with DATE_STRFTIME

2016-02-08 Thread John Keeping
On Mon, Feb 08, 2016 at 10:28:58AM -0500, Jeff King wrote: > On Mon, Feb 08, 2016 at 02:33:17PM +, John Keeping wrote: > > > I have just noticed that with DATE_STRFTIME, the timezone in the output > > is likely to be incorrect. > > > > For all other time formats, we print the string ourselves

Re: Timezone with DATE_STRFTIME

2016-02-08 Thread Jeff King
On Mon, Feb 08, 2016 at 10:28:58AM -0500, Jeff King wrote: > So I think the fix is probably just that we need to feed the zone > information to strftime via the "struct tm". Ugh, I forgot how horrible the strftime interface is. There is no zone information in "struct tm". It gets pulled from the

Re: Timezone with DATE_STRFTIME

2016-02-08 Thread Jeff King
On Mon, Feb 08, 2016 at 02:33:17PM +, John Keeping wrote: > I have just noticed that with DATE_STRFTIME, the timezone in the output > is likely to be incorrect. > > For all other time formats, we print the string ourselves and use the > correct timezone from the input, but with DATE_STRFTIME

Timezone with DATE_STRFTIME

2016-02-08 Thread John Keeping
I have just noticed that with DATE_STRFTIME, the timezone in the output is likely to be incorrect. For all other time formats, we print the string ourselves and use the correct timezone from the input, but with DATE_STRFTIME strftime(3) will always use the system timezone. -- To unsubscribe from t