Subject: Re: bug#5408: date-to-time problem

From: Lennart Borgman <[email-masked]>
Date: Mon, 18 Jan 2010 16:11:57 +0100

On Mon, Jan 18, 2010 at 4:09 PM, Juanma Barranquero <[email-masked]> wrote:
> On Mon, Jan 18, 2010 at 01:00, Lennart Borgman
> <[email-masked]> 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
>