[Techtalk] simple date question
mgmonza at sdf.lonestar.org
mgmonza at sdf.lonestar.org
Wed Oct 9 04:17:16 UTC 2013
> From: John Clarke <johnc+linuxchix at kirriwa.net>
> To: techtalk at linuxchix.org
> Subject: Re: [Techtalk] simple date question
>
> Have you tried setting the TZ environment variable? e.g.:
>
> [johnc at dropbear ~]$ date
> Wed Oct 9 14:35:35 EST 2013
> [johnc at dropbear ~]$ TZ=UTC date
> Wed Oct 9 03:35:35 UTC 2013
> [johnc at dropbear ~]$ TZ=Australia/West date
> Wed Oct 9 11:35:35 WST 2013
> [johnc at dropbear ~]$ TZ=US/Pacific date
> Tue Oct 8 20:35:35 PDT 2013
> [johnc at dropbear ~]$ TZ=America/Los_Angeles date
> Tue Oct 8 20:35:35 PDT 2013
Absolutely! As a matter of fact, I just found that suggestion on
Duckduckgo and set it - but it only works for the current terminal
session. Sudo export TZ=America/New_York just gives a command not
recognized message. I'm a bit embarassed becuase when I first started
using Unix, I seem to remember setting env's that didn't disappear, but
it's been many distros ago.
>
> On my Ubuntu system, timezone files are stored in /usr/share/zoneinfo.
> Set TZ to the appropriate relative path from there.
>
>
> - John
>
That seems to be the best solution - a soft link to the right zone file.
Thanks for the help on this insignificant but very irritating problem.
MG
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk
>
More information about the Techtalk
mailing list