GNU bug report logs - #23600
25.1.50; encode-time returns wrong result

Previous Next

Package: emacs;

Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>

Date: Sun, 22 May 2016 22:12:01 UTC

Severity: normal

Found in version 25.1.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 23600 <at> debbugs.gnu.org
Subject: bug#23600: 25.1.50; encode-time returns wrong result
Date: Sun, 12 Jun 2016 12:45:32 +0200
I noticed that calling format-time-string (or encode-time) with
time-zone string fixes the problem.  But I can't see why.

(list
 (progn (set-time-zone-rule "<AAA>-1")
	(current-time-zone))
 (progn (set-time-zone-rule "BBB-2")
	(current-time-zone))
 (progn (format-time-string "" nil "UTC0")
	(current-time-zone)))

-> ((3600 "AAA") (3600 "AAA") (7200 "BBB"))

-- 
Kazuhiro Ito




This bug report was last modified 9 years and 34 days ago.

Previous Next


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