GNU bug report logs - #5408
date-to-time problem

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Sun, 17 Jan 2010 23:14:01 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 5408 <at> debbugs.gnu.org
Subject: bug#5408: date-to-time problem
Date: Mon, 18 Jan 2010 16:11:57 +0100
On Mon, Jan 18, 2010 at 4:09 PM, Juanma Barranquero <lekktu <at> gmail.com> wrote:
> On Mon, Jan 18, 2010 at 01:00, Lennart Borgman
> <lennart.borgman <at> gmail.com> wrote:
>
>> But date-to-time does not say that it assumes GMT.
>
> No. Perhaps it should.

Yes.

>> And current-time-string does not say it will give my local time.
>
> It seems fair to default to your local timezone. Note that there's
> also a `current-time-zone', so

It would be much more fair if it told so. That would make the
difference more obvious.

> ELISP> (current-time-zone)
> (3600 "+0100")
>
> ELISP> (current-time-zone (date-to-time "Sun Jan 17 22:39:58 2010"))
> (3600 "+0100")
>
>    Juanma
>




This bug report was last modified 15 years and 131 days ago.

Previous Next


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