diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-12-06 22:39:10 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-12-06 22:39:10 +0000 |
commit | 249a36586fadbc9bde9b472d1f1faeacf0705683 (patch) | |
tree | 94a49682a8c274718c5ab82e438df2923064b0b0 /src/common/util.c | |
parent | 4006246b9e38f03e75fdf8b87fd9c52241b5c0bd (diff) | |
download | tor-249a36586fadbc9bde9b472d1f1faeacf0705683.tar tor-249a36586fadbc9bde9b472d1f1faeacf0705683.tar.gz |
Fix parse_iso_time on platforms without strptime.
svn:r3091
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |