summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-01-06 08:40:18 +0000
committerthomascube <thomas@roundcube.net>2012-01-06 08:40:18 +0000
commitac78df34178e679f9a3aded37d81bb760f3f5912 (patch)
tree2b095199d629db036cf82a742ff4e41c00b7e1a7 /program
parent6c0702e5e8fb5027254e459986f5a73edcc30221 (diff)
Avoid use of DateTime::getTimestamp()
Diffstat (limited to 'program')
-rw-r--r--program/include/main.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index d71a82ba5..66de2e5d8 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1070,7 +1070,7 @@ function format_date($date, $format=NULL, $convert=true)
date_default_timezone_set($tz->getName());
$date->setTimezone($tz);
- $timestamp = $date->getTimestamp();
+ $timestamp = $date->format('U');
// define date format depending on current time
if (!$format) {