Subject: bug#641: format-time-string %Z does not work,starting with Emacs 22.2

From: martin rudalics <[email-masked]>
Date: Tue, 05 Aug 2008 08:28:18 +0200

>>	* s/ms-w32.h: Don't define HAVE_TZNAME.
[...]
 > Sorry; I don't know what all of that means.

Jason did undefine HAVE_TZNAME on Windows in order to fix a bug with
`current-time-zone'.  As a consequence, the following code in strftime.c

#if HAVE_TZNAME
	  /* The tzset() call might have changed the value.  */
	  if (!(zone && *zone) && tp->tm_isdst >= 0)
	    zone = tzname[tp->tm_isdst];
#endif
	  if (! zone)
	    zone = "";

will produce an empty zone string on Windows.

I suppose we need different strategies for handling `current-time-zone'
and `format-time-string' on Windows.

martin