How to get ls to show local time and not GMT

How to get ls to show local time and not GMT

Post by Steve Simon » Sun, 31 Dec 1899 09:00:00



Stupid thing I can't figure out. My RD 6.0 systems display the local
time when I use 'date', but the date displayed by 'ls -l' is the GMT
time.  Is there a way to change this?

--
Steve Simons                                    "Yeah, I can do that"

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

How to get ls to show local time and not GMT

Post by Villy Kru » Sun, 31 Dec 1899 09:00:00



>Stupid thing I can't figure out. My RD 6.0 systems display the local
>time when I use 'date', but the date displayed by 'ls -l' is the GMT
>time.  Is there a way to change this?

Strange,  never seen ls display anything but the local time for file
time stamps.  What type of file system is involved.

Villy

 
 
 

How to get ls to show local time and not GMT

Post by Jean-David Beye » Sun, 31 Dec 1899 09:00:00



> Stupid thing I can't figure out. My RD 6.0 systems display the local
> time when I use 'date', but the date displayed by 'ls -l' is the GMT
> time.  Is there a way to change this?

valinux:jdbeyer[~]$ date; touch frammis; ls -l frammis; date
Fri Dec  1 16:26:36 EST 2000
-rw-r-----   1 jdbeyer  jdbeyer         0 Dec  1 16:26 frammis
Fri Dec  1 16:26:36 EST 2000
valinux:jdbeyer[~]$ uname -a
Linux valinux 2.2.14-VA.5.1smp #1 SMP Tue Sep 12 21:26:21 PDT 2000
i686 unknown
valinux:jdbeyer[~]$

I.e., works OK from here.

--
 .~.  Jean-David Beyer           Registered Linux User 85642.
 /V\                             Registered Machine    73926.
/( )\ Shrewsbury, New Jersey
^^-^^ 4:25pm up 5 days, 23:52, 2 users, load average: 2.13, 2.16, 2.13

 
 
 

1. Top shows GMT time i.s.o MDT time!

Hi!

I'm runnig RH5.0 upgraded to 2.0.35 (SMP, 2xPII 333) and most (not all)
of the errata upgrades.

Whenever I run top on my machine it shows GMT time in stead of  my local
time which is MDT. Date shows the correct time, see below.

I've searched

top version is;
procps version 1.12

Date shows:

Sat Oct 24 14:54:28 MDT 1998

Top shows:

  8:54pm  up  3:51h,  0 users,  load average: 0.00, 0.00, 0.00
30 processes: 29 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  0.0% user,  0.9% system,  0.0% nice, 99.1% idle

/etc/sysconficg/clock is:
UTC=false
ARC=false

I've searched DejaNews but couldn't find anything (There's a lot of crap
on "top"
and nothing on "GMT" so there MIGHT :( be something about this in there)

Any help would be greatly apreciated.

Thanks,
Andrei

2. Vendor-supplied binary integrity checkers?

3. Netscape sending out mail with GMT, not local time

4. Shell Scripts

5. log times in GMT, not local

6. Having problems with SMC EtherPower II...

7. New Kernel Update

8. Convert local time to gmt time without using TimeZone Env variable

9. convert UT time in local time / local time in UT time

10. GMT vs. Local Time -- Some help please!

11. Converting GMT to local time