From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sebastian Luque Newsgroups: gmane.emacs.help Subject: Re: time-stamp problem Date: Sat, 04 Dec 2004 00:41:00 GMT Organization: Memorial University of Newfoundland Message-ID: References: <3193l9F38p1g3U2@individual.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1102121126 14563 80.91.229.6 (4 Dec 2004 00:45:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Dec 2004 00:45:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 04 01:45: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 1CaO37-0000n2-00 for ; Sat, 04 Dec 2004 01:45:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaOCk-0007BL-8N for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Dec 2004 19:55:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!pd7cy2so!shaw.ca!pd7tw3no.POSTED!53ab2750!not-for-mail X-Trace-PostClient-IP: 24.77.47.177 Original-Newsgroups: gnu.emacs.help Original-Lines: 61 User-Agent: KNode/0.8.1 Original-NNTP-Posting-Host: 24.66.94.143 Original-X-Complaints-To: abuse@shaw.ca Original-X-Trace: pd7tw3no 1102120860 24.66.94.143 (Fri, 03 Dec 2004 17:41:00 MST) Original-NNTP-Posting-Date: Fri, 03 Dec 2004 17:41:00 MST Original-Xref: shelby.stanford.edu gnu.emacs.help:127135 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:22552 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22552 Hi, This turned out to be a lot more complex and confusing than I thought. I seem to have magically solved the problem by setting time-stamp-time-zone to nil (yes, that's right!) but leaving time-stamp-format set to: %3a, %02d %3b %:y, at %02H:%02M:%02S %Z The last %Z stands for the timezone. With this, time-stamp is stamping files with the correct time AND my correct timezone string! I don't have the TZ variable set in my environment, so I have no idea where in the world time-stamp is getting its timezone string from. So the problem is solved, but I don't what is going on. nick wrote: > 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". I can see that file, but also a /usr/share/zoneinfo/Canada/Central which is what I need. > 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). I tried this at some point before and found that an init script is rewriting this info at startup. I'm using a hard disk installation of Knoppix and the only way I could get the timezone info to be permanently set was to modify /etc/init.d/knoppix-autoconfig in the following lines: # American version LANGUAGE="us" COUNTRY="us" LANG="C" KEYTABLE="us" XKEYBOARD="us" KDEKEYBOARD="us" CHARSET="iso8859-1" # Additional KDE Keyboards KDEKEYBOARDS="de,fr" TZ="America/Winnipeg" Nonetheless, echo $TZ shows nothing in a shell. Does somebody understand this? Thank you! -- Best wishes, Sebastian