GNU bug report logs - #11281
DST has not effect on windows XP when system DST adjustment is disabled

Previous Next

Package: emacs;

Reported by: Shuguang Sun <shuguang <at> gmail.com>

Date: Thu, 19 Apr 2012 16:46:01 UTC

Severity: minor

Done: Stefan Kangas <stefan <at> marxist.se>

Full log


Message #32 received at 11281 <at> debbugs.gnu.org (full text, mbox):

From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 11281 <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: Re: bug#11281: DST has not effect on windows XP when system DST
 adjustment is disabled
Date: Fri, 23 May 2025 17:32:15 +0900
> > (let ((time (encode-time '(0 0 12 20 5 2025 nil nil t))))
> >   ;; The result depends on whether DST is enabled on Windows timezone
> >   ;; setting at the time of evaluating `(setenv "TZ" nil)'.
> >   (setenv "TZ" nil)
> >   (decode-time time "est5edt"))
> > 
> > ;; The case that DST is disabled on Windows control panel.
> > -> (0 0 7 20 5 2025 2 t -18000)
> > 
> > ;; DST is enabled.
> > -> (0 0 8 20 5 2025 2 t -14400)
(snip)

> My suggestion therefore is not to try such tricks in Emacs on Windows,
> and not to expect that to produce results that are as accurate as on
> Posix platforms.

Thank you for the comment.
What do you mean by 'such tricks'?  Using traditional timezone name or
using string as a ZONE pamareter?  If the former, what is proper
string for ZONE on Windows?

-- 
Kazuhiro Ito




This bug report was last modified 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.