by userbinator · 8y ago · 0 comments
It looks like git uses the standard Unix epoch for its internal timestamp format, and not e.g. a format unable to represent dates before its creation, but that still means it can't really handle pre-Unix dates:
https://stackoverflow.com/questions/21787872/is-it-possible-...
Edit: downvoters, care to explain what I'm wrong about?
I didn't downvote.
git is distributed and works offline, this means that nothing could prevent you from making commit with a "fake" date, you always can change time on your machine. So there's nothing really hackish in that, and that has nothing to do with format in which time stored in git internally. And you can have legitimate uses for "faking" commit date. I'd say repository above is an example of such a legitimate use.
$ perl -e 'print gmtime(-2147483648).""'
Fri Dec 13 20:45:52 1901