emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#11281: closed (DST has not effect on windows XP wh


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#11281: closed (DST has not effect on windows XP when system DST adjustment is disabled)
Date: Fri, 15 Nov 2013 03:59:03 +0000

Your message dated Tue, 01 Jan 2002 06:00:52 +0530
with message-id <address@hidden>
and subject line Re: bug#11807: M-x display-time-world & EDT/DST
has caused the debbugs.gnu.org bug report #11807,
regarding DST has not effect on windows XP when system DST adjustment is 
disabled
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
11807: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11807
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: DST has not effect on windows XP when system DST adjustment is disabled Date: Fri, 20 Apr 2012 00:35:40 +0800
I'm using GNU Emacs 24.0.95.1 (i386-mingw-nt5.1.2600) of 2012-04-02 on
MARVIN on WindowsXP SP3. I believe the issue exists in other version
as well.

In windows,
1. If I select the time zone GMP-5 EST (East Standard Time) and  check
the enable Daylight Saving Time checkbox, the command
display-time-world in emacs can show the time of New York correctly
with DST.
2. If I select the time zone GMP-5 EST (East Standard Time) and
UNCHECK the enable Daylight Saving Time checkbox, or if I select a
time zone without DST, the command display-time-world in emacs can not
show the time of New York correctly with DST.
But actually the display-time-world-list for New York is ("EST5EDT"
"New York"), which (EST5EDT) supposes to enable the Daylight Saving
Time to show the time.

I try the following code to trace the issue:
(setq old-tz (getenv "TZ"))
(setenv "TZ" "EST+5EDT")
(message (format "%s" (getenv "TZ")))
(message (format-time-string "%A %d %B %R %Z"))
(decode-time)
(setenv "TZ" "EST+5")
(message (format "%s" (getenv "TZ")))
(message (format-time-string "%A %d %B %R %Z"))
(decode-time)
(setenv "TZ" old-tz)

The output is (Because I select a timezone without DST in windows, the
time in the outputs is no DST as I described above):
"EST+5EDT"
"Thursday 19 April 11:27 EDT"
(26 27 11 19 4 2012 4 t -18000)

"EST+5"
"Thursday 19 April 11:27 EST"
(34 27 11 19 4 2012 4 nil -18000)

(DST is t if daylight saving time is in effect,otherwise nil.from the
doc of decode-time) From the output of decode-time, it is clear that
if the TZ is set to "EST+5EDT", the DST is effect. So it is most
likely the function format-time-string can not catch this information.
But it is still weird that it DOES has effect if I enable the DST in
the Windows system.



--- End Message ---
--- Begin Message --- Subject: Re: bug#11807: M-x display-time-world & EDT/DST Date: Tue, 01 Jan 2002 06:00:52 +0530 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
I have an actual watch (which is more reliable) to look up at time.  So
closing this request.



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]