Fix parse_iso_time on platforms without strptime.

svn:r3091
This commit is contained in:
Nick Mathewson
2004-12-06 22:39:10 +00:00
parent 4006246b9e
commit 249a36586f
+1 -1
View File
@@ -662,7 +662,7 @@ int parse_iso_time(const char *cp, time_t *t) {
hour > 23 || minute > 59 || second > 61) {
log_fn(LOG_WARN, "Published time was nonsensical"); return -1;
}
st_tm.tm_year = year;
st_tm.tm_year = year-1900;
st_tm.tm_mon = month-1;
st_tm.tm_mday = day;
st_tm.tm_hour = hour;