]> Savannah Git Hosting - gnulib.git/commit
strftime: %z is -00 if unknown
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 14 Jan 2017 19:35:34 +0000 (11:35 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 14 Jan 2017 19:36:52 +0000 (11:36 -0800)
commit0e68c6a37ed08fc553dd6fb097d97d798dcfa40d
tree4e0740c155266d617ec410086a959742a88e97c4
parent916a632413a6c0af72c7b61f36e3eb8400b858cc
strftime: %z is -00 if unknown

* lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
the caller's responsibility to set 'negative_number'.  All uses changed.
(__strftime_internal): Put '-' before a zero UTC offset if the time
zone abbreviation starts with "-", which is the recently-introduced
tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
* tests/test-strftime.c: Test for this.
ChangeLog
lib/strftime.c
tests/test-strftime.c