From: Christian Grothoff Date: Mon, 1 Jan 2018 17:16:40 +0000 (+0100) Subject: fix GNUNET_TIME_year_to_time, do not start in February... X-Git-Tag: gnunet-0.11.0rc0~39 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=04ff2b8f3b3b499e56a878b2d9166f03f7610784;p=oweals%2Fgnunet.git fix GNUNET_TIME_year_to_time, do not start in February... --- diff --git a/src/util/time.c b/src/util/time.c index 19100ac36..5ffb19ec1 100644 --- a/src/util/time.c +++ b/src/util/time.c @@ -693,7 +693,7 @@ GNUNET_TIME_year_to_time (unsigned int year) } t.tm_year = year - 1900; t.tm_mday = 1; - t.tm_mon = 1; + t.tm_mon = 0; t.tm_wday = 1; t.tm_yday = 1; tp = mktime (&t);