summaryrefslogtreecommitdiff
path: root/program/include/rcube_shared.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r--program/include/rcube_shared.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index 9340091bb..ab4b77bae 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -66,7 +66,7 @@ function send_future_expire_header($offset=2600000)
if (headers_sent())
return;
- header("Expires: ".gmdate("D, d M Y H:i:s", mktime()+$offset)." GMT");
+ header("Expires: ".gmdate("D, d M Y H:i:s", time()+$offset)." GMT");
header("Cache-Control: max-age=$offset");
header("Pragma: ");
}
@@ -299,7 +299,7 @@ function get_offset_time($offset_str, $factor=1)
$unit = 's';
}
- $ts = mktime();
+ $ts = time();
switch ($unit)
{
case 'w':