From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: nick Newsgroups: gmane.emacs.help Subject: Re: time-stamp problem Date: Fri, 03 Dec 2004 18:10:40 GMT Organization: nowhere, inc. Message-ID: References: <3193l9F38p1g3U2@individual.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1102097432 23754 80.91.229.6 (3 Dec 2004 18:10:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Dec 2004 18:10:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 03 19:10:22 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CaHss-0005aO-00 for ; Fri, 03 Dec 2004 19:10:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaI2T-00051e-R1 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Dec 2004 13:20:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!info4.fnal.gov!nntp-server.caltech.edu!hammer.uoregon.edu!arclight.uoregon.edu!news.infoave.net!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:Cap1xqGyh4mM01kMS0fO7BenBEk= Original-Lines: 35 Original-NNTP-Posting-Host: 16.141.40.203 Original-X-Complaints-To: abuse@HP.com Original-X-Trace: news.cpqcorp.net 1102097440 16.141.40.203 (Fri, 03 Dec 2004 10:10:40 PST) Original-NNTP-Posting-Date: Fri, 03 Dec 2004 10:10:40 PST Original-Xref: shelby.stanford.edu gnu.emacs.help:127127 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22544 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22544 Sebastian Luque 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)