changeset 3522:dc9f7a107e28

(Fcurrent_time_zone): Add alternative for !HAVE_TM_ZONE.
author Richard M. Stallman <rms@gnu.org>
date Sun, 06 Jun 1993 17:43:12 +0000
parents d499a827577e
children a9967fc643c5
files src/editfns.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Sun Jun 06 17:42:02 1993 +0000
+++ b/src/editfns.c	Sun Jun 06 17:43:12 1993 +0000
@@ -656,7 +656,12 @@
 #ifdef HAVE_TM_ZONE
       if (t->tm_zone)
 	s = t->tm_zone;
+#else /* not HAVE_TM_ZONE */
+#ifdef HAVE_TZNAME
+      if (t->tm_isdst == 0 || t->tm_isdst == 1)
+	s = tzname[t->tm_isdst];
 #endif
+#endif /* not HAVE_TM_ZONE */
       if (!s)
 	{
 	  /* No local time zone name is available; use "+-NNNN" instead.  */