On Sun, Sep 22, 2002 at 06:44:39PM -0400, Glenn Maynard wrote:
> I notice the timestamp is wrong, too (on both).
>
> 06:20pm [EMAIL PROTECTED]/1 [~ftp] touch -t 09221310 foo
> (about five hours ago, to get it out of the "bump the year when the date
> is in the future" window)
>
> lftp 0:/> cls -l foo
> -rw-r--r--    1 1000     users           0 Sep 22 17:10 foo
> lftp 0:/> hostls -l foo
> -rw-r--r--   1 1000     users           0 Sep 22 17:10 foo
> lftp 0:/> !ls -l --time-style=locale ~ftp/foo (local time)
> -rw-r--r--    1 glenn    users           0 Sep 22 13:10 /home/ftp/foo
>
> Note that cls and ls are the same--they're both GMT.  cls should be printing
> local time.  It looks like the timezone adjustment is going astray somewhere.

Does this patch change anything? (patch attached)

--
   Alexander.
Index: misc.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/misc.cc,v
retrieving revision 1.56
diff -u -p -r1.56 misc.cc
--- misc.cc     2002/08/05 08:51:14     1.56
+++ misc.cc     2002/09/23 08:25:55
@@ -542,6 +542,8 @@ static void set_tz(const char *tz)
       xfree(put_tz);
       put_tz=new_tz;
    }
+   // now initialize extarnal variables from env TZ.
+   tzset();
 }
 static char *saved_tz=0;
 static void save_tz()

Reply via email to