author | David Woodhouse <dwmw2@infradead.org> | |
Fri, 15 Apr 2005 15:39:57 +0000 (08:39 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Fri, 15 Apr 2005 15:39:57 +0000 (08:39 -0700) | ||
commit | 27de946d0ee70fad497253bbaab76d2fa7b1c77c | |
tree | 53cbeeb5b30e9a9e0759fad94a9e2d24aaeff53d | tree | snapshot |
parent | aa1c48df8172f844455cc12f25aa49be8ffdd828 | commit | diff |
[PATCH] Simplify date handling and make it more reliable
This make all dates be stores as seconds since UTC epoch, with the
author's or committer's timezone as auxiliary data so that dates can be
pretty-printed in the original timezone later if anyone cares. I left
the date parsing in rev-tree.c for backward compatibility but it can be
dropped when we change to base64 :)
commit-tree now eats RFC2822 dates as AUTHOR_DATE because that's
what you're going to want to feed it.
Yes, glibc sucks and strptime is a pile of crap. We have to parse it
ourselves.
This make all dates be stores as seconds since UTC epoch, with the
author's or committer's timezone as auxiliary data so that dates can be
pretty-printed in the original timezone later if anyone cares. I left
the date parsing in rev-tree.c for backward compatibility but it can be
dropped when we change to base64 :)
commit-tree now eats RFC2822 dates as AUTHOR_DATE because that's
what you're going to want to feed it.
Yes, glibc sucks and strptime is a pile of crap. We have to parse it
ourselves.
commit-tree.c | diff | blob | history | |
rev-tree.c | diff | blob | history |