git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix "cvs log" to use UTC timezone instead of local

From
JBJonas Berlin <xkr47@outerspace.dyndns.org>
Date
Sep 5, 2007, 21:45 UTC
Message-ID
<46DF2371.5030603@outerspace.dyndns.org>
In-Reply-To
<46DF2058.7060405@outerspace.dyndns.org>
Quoting Jonas Berlin on 09/05/2007 09:32 PM UTC:
Show 9 quoted lines
> Quoting Linus Torvalds on 09/04/2007 01:22 PM UTC:
>> That can be done various ways:
>>
>>  - use the "raw log format" which has dates as seconds-since-UTC (and with 
>>    an *informational* timezone thing that should then just be ignored).
>>
>>    This is likely the best approach, since anything but this will 
> 
> This seems straightforward to implement, so I will go with this.
I just realized that since git-cvsserver creates a SQLite database (assumably for keeping track of what cvs revision numbers map to which git commits) AND the "timezonized" timestamps are stored as strings in there, switching to UTC timestamps would either break current SQLite databases or then require backwards compatibility code to handle the pretty-printed timestamp (with the UTC unrolling code from the patch I sent).
> I guess at this point it's good to mention that current cvs implementations (at least 1.12.12) produce timestamps of format "yyyy-mm-dd HH:MM:SS +ZZZZ" (i.e. they do include timezone information) while older versions (at least 1.11.22) produce the UTC-only format "yyyy/mm/dd HH:MM:SS" which is currently used by git-cvsserver. Backwards compatibility generally being a good thing, while at the expense of timezone information, I chose to keep the older UTC-only format. Should you prefer to keep the timezone information, I'll update the cvs log format instead. Heck, I could even support both through some configuration option if you really wanted :)
Another option would be to scrap support for old cvs clients.. I could investigate when the new format was introduced..
-- 
- xkr47
Previous: Jonas Berlin
Message 4 of 4 in “Fix "cvs log" to use UTC timezone instead of local”
  1. Fix "cvs log" to use UTC timezone instead of localJonas Berlin, Sep 4, 2007
  2. Linus TorvaldsSep 4, 2007
  3. Jonas BerlinSep 5, 2007
  4. Jonas BerlinSep 5, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.