<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/date.c, branch v0.99</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v0.99</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v0.99'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2005-06-25T23:52:16Z</updated>
<entry>
<title>[PATCH] fix date parsing for GIT raw commit timestamp format.</title>
<updated>2005-06-25T23:52:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-06-25T09:21:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9cb480f2ad653d834fe5e4ba7a8a25f74ad1d89b'/>
<id>urn:sha1:9cb480f2ad653d834fe5e4ba7a8a25f74ad1d89b</id>
<content type='text'>
Usually all of the match_xxx routines in date.c fill tm
structure assuming that the parsed string talks about local
time, and parse_date routine compensates for it by adjusting the
value with tz offset parsed out separately.  However, this logic
does not work well when we feed GIT raw commit timestamp to it,
because what match_digits gets is already in GMT.

A good testcase is:

    $ make test-date
    $ ./test-date 'Fri Jun 24 16:55:27 2005 -0700' '1119657327 -0700'

These two timestamps represent the same time, but the second one
without the fix this commit introduces gives you 7 hours off.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>Include file cleanups..</title>
<updated>2005-05-22T18:54:17Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-05-22T18:54:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6b0c3121061df6b323f430700e8077b324b5e9dd'/>
<id>urn:sha1:6b0c3121061df6b323f430700e8077b324b5e9dd</id>
<content type='text'>
Add &lt;limits.h&gt; to the include files handled by "cache.h", and remove
extraneous #include directives from various .c files. The rule is that
"cache.h" gets all the basic stuff, so that we'll have as few system
dependencies as possible.
</content>
</entry>
<entry>
<title>sparse cleanup</title>
<updated>2005-05-20T18:46:10Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-05-20T18:46:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e99d59ff0bff349ef205cef1076e0354c8130680'/>
<id>urn:sha1:e99d59ff0bff349ef205cef1076e0354c8130680</id>
<content type='text'>
Fix various things that sparse complains about:
 - use NULL instead of 0
 - make sure we declare everything properly, or mark it static
 - use proper function declarations ("fn(void)" instead of "fn()")

Sparse is always right.
</content>
</entry>
<entry>
<title>[PATCH] fix show_date() for positive timezones</title>
<updated>2005-05-18T21:23:04Z</updated>
<author>
<name>Nicolas Pitre</name>
<email>nico@cam.org</email>
</author>
<published>2005-05-18T21:11:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fbab835c03f1c73e4de920d00cd26519506d33fe'/>
<id>urn:sha1:fbab835c03f1c73e4de920d00cd26519506d33fe</id>
<content type='text'>
Signed-off-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>date.c: add "show_date()" function.</title>
<updated>2005-05-06T22:28:59Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-05-06T22:28:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f80cd783c6f346388bbb0a6a15672be99a71f7ed'/>
<id>urn:sha1:f80cd783c6f346388bbb0a6a15672be99a71f7ed</id>
<content type='text'>
Kind of like ctime(), but not as broken.
</content>
</entry>
<entry>
<title>date handling: handle "AM"/"PM" on time</title>
<updated>2005-05-01T19:34:56Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-05-01T19:34:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=68849b544258cafdf42f3ebe9772ee7a346f7147'/>
<id>urn:sha1:68849b544258cafdf42f3ebe9772ee7a346f7147</id>
<content type='text'>
And be a bitmore careful about matching: if we don't recognize a word
or a number, we skip the whole thing, rather than trying the next character
in that word/number.

Finally: since ctime() adds the final '\n', don't add another one in test-date.
</content>
</entry>
<entry>
<title>date.c: allow even more varied time formats</title>
<updated>2005-05-01T18:48:34Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-05-01T18:48:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=198b0fb635ed8a007bac0c16eab112c5e2c7995c'/>
<id>urn:sha1:198b0fb635ed8a007bac0c16eab112c5e2c7995c</id>
<content type='text'>
(and some added checks for truly non-sensical stuff)
</content>
</entry>
<entry>
<title>date.c: fix printout of timezone offsets that aren't exact hours</title>
<updated>2005-04-30T23:18:41Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-04-30T23:18:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7f26664f1f03571cf3bde2fb3d321b9933690638'/>
<id>urn:sha1:7f26664f1f03571cf3bde2fb3d321b9933690638</id>
<content type='text'>
We'd get the sign wrong for the minutes part of a negative offset.
</content>
</entry>
<entry>
<title>date.c: only use the TZ names if we don't have anything better.</title>
<updated>2005-04-30T22:21:57Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-04-30T22:21:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=92e2311b6c10bf1e4f3e1231d26a6e71d81c5f47'/>
<id>urn:sha1:92e2311b6c10bf1e4f3e1231d26a6e71d81c5f47</id>
<content type='text'>
Also, add EEST (hey, it's Finland).
</content>
</entry>
<entry>
<title>date.c: split up dst information in the timezone table</title>
<updated>2005-04-30T21:53:12Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-04-30T21:53:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5e2a78a4101ec1dafb885c989cc0f958c0de9222'/>
<id>urn:sha1:5e2a78a4101ec1dafb885c989cc0f958c0de9222</id>
<content type='text'>
This still doesn't actually really _use_ it properly, nor make any
distinction between different DST rules, but at least we could (if
we wanted to) fake it a bit better.

Right now the code actually still says "it's always summer". I'm
from Finland, I don't like winter.
</content>
</entry>
</feed>
