summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/head.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/head.c b/ext/standard/head.c
index f1b2fa4e8b..91b12108bf 100644
--- a/ext/standard/head.c
+++ b/ext/standard/head.c
@@ -149,7 +149,7 @@ PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires,
smart_str_append(&buf, dt);
zend_string_free(dt);
- diff = difftime(expires, time(NULL));
+ diff = difftime(expires, php_time());
if (diff < 0) {
diff = 0;
}