diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2013-11-28 22:41:13 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2013-11-28 22:41:13 -0800 |
commit | b730e5dce382923990bc4ad76b90da8b9f73100f (patch) | |
tree | 624ab1aa49e8bb1bf4dac7b376d6d67e3992cfe8 /lib.c | |
parent | 2e104e2d490dc02eb527b5e17f14e4ea39275161 (diff) | |
download | txr-b730e5dce382923990bc4ad76b90da8b9f73100f.tar.gz txr-b730e5dce382923990bc4ad76b90da8b9f73100f.tar.bz2 txr-b730e5dce382923990bc4ad76b90da8b9f73100f.zip |
* 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.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |