git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Date handling.
@ 2005-04-14  8:16 David Woodhouse
  2005-04-14  9:00 ` Linus Torvalds
  0 siblings, 1 reply; 18+ messages in thread
From: David Woodhouse @ 2005-04-14  8:16 UTC (permalink / raw)
  To: git

The date handling is somewhat unreliable. We render dates into textual
representation using the committer's locale (day names, etc), then later
attempt to interpret that in some other locale. And we were just using
localtime without even specifying the timezone so the timestamp was
fairly randomised anyway. In fact, an $AUTHOR_DATE environment variable
was making its way into the database entirely unchecked. 

I see two possible solutions:
	1. Just store seconds-since-GMT-epoch and if we really want, the
	   timezone as auxiliary information.
	2. Store dates in RFC2822 form.

Unless someone convincingly expresses a preference before I get to work
and start playing with it, I'll implement the latter.

-- 
dwmw2



^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: Date handling.
@ 2005-04-14 19:42 Luck, Tony
  2005-04-14 20:54 ` David Woodhouse
  2005-04-15  5:02 ` Paul Jackson
  0 siblings, 2 replies; 18+ messages in thread
From: Luck, Tony @ 2005-04-14 19:42 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Linus Torvalds, git

>I'd prefer not to lose the information. If someone has committed a
>change at 2am, I like to know that it was 2am for _them_. It helps me
>decide where to look first for the cause of problems. :)

I'd think the 8:00am-before-the-first-coffee checkins would be the
most worrying :-)

>It also helps disambiguate certain comments, especially those involving
>words or phrases such as "yesterday" or "this afternoon".

This is a very good point ... but this still has problems with the
"git is a filesystem, not a SCM" mantra.  Timezone comments don't
belong in the git inode.

-Tony

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-04-25  1:28 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-14  8:16 Date handling David Woodhouse
2005-04-14  9:00 ` Linus Torvalds
2005-04-14  9:12   ` Linus Torvalds
2005-04-14 17:38     ` David Woodhouse
2005-04-14 19:19       ` tony.luck
2005-04-14 19:23         ` David Woodhouse
2005-04-24  3:04       ` Jan Harkes
2005-04-24  3:33         ` James Purser
2005-04-24  6:38         ` David Woodhouse
2005-04-24  6:43           ` Russ Allbery
2005-04-25  1:22           ` Jan Harkes
2005-04-25  1:32             ` Russ Allbery
2005-04-14  9:31   ` David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2005-04-14 19:42 Luck, Tony
2005-04-14 20:54 ` David Woodhouse
2005-04-14 21:01   ` H. Peter Anvin
2005-04-14 21:48     ` David Woodhouse
2005-04-15  5:02 ` Paul Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).