diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-01 18:16:40 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-01 18:16:40 +0100 |
commit | 04ff2b8f3b3b499e56a878b2d9166f03f7610784 (patch) | |
tree | 3d034385667d6f85485db9306d9458044e16e8b6 /src/util/time.c | |
parent | 8865e30ab9bc1c52af24f1300f0b07e20784fe1c (diff) | |
download | gnunet-04ff2b8f3b3b499e56a878b2d9166f03f7610784.tar.gz gnunet-04ff2b8f3b3b499e56a878b2d9166f03f7610784.zip |
fix GNUNET_TIME_year_to_time, do not start in February...
Diffstat (limited to 'src/util/time.c')
-rw-r--r-- | src/util/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
693 | } | 693 | } |
694 | t.tm_year = year - 1900; | 694 | t.tm_year = year - 1900; |
695 | t.tm_mday = 1; | 695 | t.tm_mday = 1; |
696 | t.tm_mon = 1; | 696 | t.tm_mon = 0; |
697 | t.tm_wday = 1; | 697 | t.tm_wday = 1; |
698 | t.tm_yday = 1; | 698 | t.tm_yday = 1; |
699 | tp = mktime (&t); | 699 | tp = mktime (&t); |