diff options
author | thomascube <thomas@roundcube.net> | 2012-01-06 08:40:18 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2012-01-06 08:40:18 +0000 |
commit | ac78df34178e679f9a3aded37d81bb760f3f5912 (patch) | |
tree | 2b095199d629db036cf82a742ff4e41c00b7e1a7 /program | |
parent | 6c0702e5e8fb5027254e459986f5a73edcc30221 (diff) |
Avoid use of DateTime::getTimestamp()
Diffstat (limited to 'program')
-rw-r--r-- | program/include/main.inc | 2 |
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) { |