summaryrefslogtreecommitdiff
path: root/ext/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'ext/calendar')
-rw-r--r--ext/calendar/cal_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/calendar/cal_unix.c b/ext/calendar/cal_unix.c
index f48243669c..3e4398a266 100644
--- a/ext/calendar/cal_unix.c
+++ b/ext/calendar/cal_unix.c
@@ -45,7 +45,7 @@ PHP_FUNCTION(unixtojd)
t = time(NULL);
}
- ta = localtime_r(&t, &tmbuf);
+ ta = php_localtime_r(&t, &tmbuf);
jdate = GregorianToSdn(ta->tm_year+1900, ta->tm_mon+1,ta->tm_mday);
RETURN_LONG(jdate);