monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Monotone displays commit times in UTC, not local ti


From: Matthew Nicholson
Subject: Re: [Monotone-devel] Monotone displays commit times in UTC, not local time
Date: Thu, 05 Jun 2008 09:00:31 -0500
User-agent: Mozilla-Thunderbird 2.0.0.14 (X11/20080509)

Zack Weinberg wrote:
On Wed, Jun 4, 2008 at 3:25 AM, Tim Kettler <address@hidden> wrote:
I just noticed that monotone displays the commit time for changes (printed
by 'mtn log') in UTC and not my local time. Is this the wanted behaviour? If
not, does anybody else see this or is it just some misconfiguration on my
machine?

I wouldn't call it _desirable_, but it is the expected behavior.
Dates are stored as strings in the database, in exactly the format you
see them, in UTC.  When they're printed, we just print them out as
strings.  This is because doing a time zone conversion is fraught with
portability issues, and so it's more trouble than anyone's wanted to
go to.

Feel free to send in patches :)

zw


Boost.DateTime can parse the exact string that we store in the database and convert it to local time. It should be an easy patch to write. Not sure how that would affect performance or if we are willing to link with boost date_time.

P.S. I noticed this issue too, and it is kind of annoying. It makes using the dates in monotone some what difficult.

--
Matthew Nicholson
matt-land.com




reply via email to

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