Re: strftime trouble with %z

2011-04-18 Thread Corinna Vinschen
On Apr 14 11:09, Peter Rosin wrote: Hi! I'm getting somewhat troublesome output from the below STC. It seems as if gmtime mucks with something, or that localtime is not filling in everything it needs to? Thanks for the testcase! Actually gmtime mucks with something. It changes global

Re: strftime trouble with %z

2011-04-18 Thread Peter Rosin
Den 2011-04-18 21:13 skrev Corinna Vinschen: On Apr 14 11:09, Peter Rosin wrote: Hi! I'm getting somewhat troublesome output from the below STC. It seems as if gmtime mucks with something, or that localtime is not filling in everything it needs to? Thanks for the testcase! Actually

strftime trouble with %z

2011-04-14 Thread Peter Rosin
Hi! I'm getting somewhat troublesome output from the below STC. It seems as if gmtime mucks with something, or that localtime is not filling in everything it needs to? --8---(zone.c)- #include stdio.h #include time.h int main(void) { char zone[6]; struct