changeset 2976:6fe71a039fce

(Fcurrent_time_zone): Assign gmt, instead of init.
author Richard M. Stallman <rms@gnu.org>
date Sun, 23 May 1993 18:04:25 +0000
parents 11c21b4d400d
children ddcad1457cd5
files src/editfns.c
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Sun May 23 04:42:38 1993 +0000
+++ b/src/editfns.c	Sun May 23 18:04:25 1993 +0000
@@ -634,7 +634,7 @@
 and from `file-attributes'.\n\
 \n\
 Some operating systems cannot provide all this information to Emacs;\n\
-in this case, current-time-zone will return a list containing nil for\n\
+in this case, `current-time-zone' returns a list containing nil for\n\
 the data it can't find.")
   (specified_time)
      Lisp_Object specified_time;
@@ -643,13 +643,15 @@
   struct tm *t;
 
   if (lisp_time_argument (specified_time, &value)
-      && (t = gmtime(&value)) != 0)
+      && (t = gmtime (&value)) != 0)
     {
-      struct tm gmt = *t;  /* Make a copy, in case localtime modifies *t.  */
+      struct tm gmt;
       long offset;
       char *s, buf[6];
-      t = localtime(&value);
-      offset = difftm(t, &gmt);
+
+      gmt = *t;		/* Make a copy, in case localtime modifies *t.  */
+      t = localtime (&value);
+      offset = difftm (t, &gmt);
       s = 0;
 #ifdef HAVE_TM_ZONE
       if (t->tm_zone)