diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2013-11-28 Kaz Kylheku <kaz@kylheku.com> + * lib.c (make_time): We must subtract from the 1-12 + month for the tm_mon member of struct tm; we + were adding 1 instead. + +2013-11-28 Kaz Kylheku <kaz@kylheku.com> + * stream.c (tail_calc): New function (tail_strategy): Handle the situation when the file disappears. We cannot throw an error, but must poll the filesystem @@ -5035,7 +5035,7 @@ val make_time(val year, val month, val day, time_t time; local.tm_year = c_num(year) - 1900; - local.tm_mon = c_num(month) + 1; + local.tm_mon = c_num(month) - 1; local.tm_mday = c_num(day); local.tm_hour = c_num(hour); local.tm_min = c_num(minute); |