help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: time-stamp problem


From: nick
Subject: Re: time-stamp problem
Date: Fri, 03 Dec 2004 18:10:40 GMT
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Sebastian Luque <address@hidden> writes:

> Kevin Rodgers wrote:
>
>> ,----[ C-h v time-stamp-time-zone RET ]
>> | time-stamp-time-zone's value is nil
>> ...
>
> I forgot to mention that I did set this to my local timezone ("CST", Central
> Standard Time, -0600). FWIW, working with html-helper-mode, my html files get
> time-stamped correctly. So both time-stamp and html-helper-mode write the
> correct timezone string (CST), but time-stamp ignores the offset completely,
> so it's showing GMT time (i.e. local CST time + 0600). Very strange. What can
> be going on?

Does it help to set this variable to nil and to unset the TZ
environment variable?

It is probably the case that setting these to "CST" does not work
because there is no "CST" timezone defined on your system, so it punts
and uses UTC for the time. E.g. on my system, the timezone info directory
(/usr/share/zoneinfo - yours might be in a different place) does not
contain a CST file; on the other hand, it does have a CST6CDT file and
things seem to work if I set TZ to "CST6CDT". But I find it much more
convenient to forego explicit settings of environment variables: I
just make a symlink /etc/localtime to point to the correct timezone
file:

$ ls -l /etc/localtime
lrwxrwxrwx ... /etc/localtime -> /usr/share/zoneinfo/US/Eastern

and everything just works (as long as /usr is mounted).

-- 
nick  (nicholas dot dokos at hp dot com)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]