summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2013-11-28 22:41:13 -0800
committerKaz Kylheku <kaz@kylheku.com>2013-11-28 22:41:13 -0800
commitb730e5dce382923990bc4ad76b90da8b9f73100f (patch)
tree624ab1aa49e8bb1bf4dac7b376d6d67e3992cfe8 /lib.c
parent2e104e2d490dc02eb527b5e17f14e4ea39275161 (diff)
downloadtxr-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index ad5b4b94..4dfd83d7 100644
--- a/lib.c
+++ b/lib.c
@@ -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);