fix GNUNET_TIME_year_to_time, do not start in February...
authorChristian Grothoff <christian@grothoff.org>
Mon, 1 Jan 2018 17:16:40 +0000 (18:16 +0100)
committerChristian Grothoff <christian@grothoff.org>
Mon, 1 Jan 2018 17:16:40 +0000 (18:16 +0100)
src/util/time.c

index 19100ac3631f91ffa95d92b366ca1307e59a5b21..5ffb19ec1548f13d512da69e3048c93daed68c23 100644 (file)
@@ -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);