author | Edgar Toernig <froese@gmx.de> | |
Sat, 30 Apr 2005 16:46:49 +0000 (09:46 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sat, 30 Apr 2005 16:46:49 +0000 (09:46 -0700) | ||
commit | ecee9d9e793c7573cf3730fb9746527a0a7e94e7 | |
tree | 0cd8a2506a2960a0697fd7aaa2cd0dfc38b1aa67 | tree | snapshot |
parent | d167f147dc6995e452cdc374ffcd07f5d9abf0bc | commit | diff |
[PATCH] Do date parsing by hand...
...since everything out there is either strange (libc mktime has issues
with timezones) or introduces unnecessary dependencies for people (libcurl).
This goes back to the old date parsing, but moves it out into a file of
its own, and does the "struct tm" to "seconds since epoch" handling by
hand.
I grepped through the tz-database and it seems there's one "country"
left that has non-60-minute DST: Lord Howe Island. All others dropped
that before 1970.
...since everything out there is either strange (libc mktime has issues
with timezones) or introduces unnecessary dependencies for people (libcurl).
This goes back to the old date parsing, but moves it out into a file of
its own, and does the "struct tm" to "seconds since epoch" handling by
hand.
I grepped through the tz-database and it seems there's one "country"
left that has non-60-minute DST: Lord Howe Island. All others dropped
that before 1970.
Makefile | diff | blob | history | |
cache.h | diff | blob | history | |
commit-tree.c | diff | blob | history | |
date.c | [new file with mode: 0644] | blob |