summaryrefslogtreecommitdiff
path: root/src/pcal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcal.c')
-rw-r--r--src/pcal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcal.c b/src/pcal.c
index c4f731d..4c00ddc 100644
--- a/src/pcal.c
+++ b/src/pcal.c
@@ -64,7 +64,7 @@ foreach_date_dump(const long date_end, struct rpt *rpt, llist_t * exc,
time_t t;
t = item_first_date;
- lt = *localtime(&t);
+ localtime_r(&t, &lt);
lt.tm_hour = lt.tm_min = lt.tm_sec = 0;
lt.tm_isdst = -1;
date = mktime(&lt);