GNU bug report logs -
#11281
DST has not effect on windows XP when system DST adjustment is disabled
Previous Next
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>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> > (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 52 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.