From 249a36586fadbc9bde9b472d1f1faeacf0705683 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 6 Dec 2004 22:39:10 +0000 Subject: Fix parse_iso_time on platforms without strptime. svn:r3091 --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/util.c') diff --git a/src/common/util.c b/src/common/util.c index dd6ff289e..762145244 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -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; -- cgit v1.2.3