From: Sebastian Luque <sluque@mun.ca>
Subject: Re: time-stamp problem
Date: Sat, 04 Dec 2004 00:41:00 GMT [thread overview]
Message-ID: <wI7sd.424058$nl.97833@pd7tw3no> (raw)
In-Reply-To: sgjmzwv6ytn.fsf@zenix.zk3.dec.com
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
prev parent reply other threads:[~2004-12-04 0:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-02 16:57 time-stamp problem Sebastian Luque
2004-12-02 18:02 ` Kevin Rodgers
2004-12-02 21:16 ` Sebastian Luque
2004-12-03 18:10 ` nick
2004-12-04 0:41 ` Sebastian Luque [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='wI7sd.424058$nl.97833@pd7tw3no' \
--to=sluque@mun.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).