Avoid use of DateTime::getTimestamp()

pull/1/head
thomascube 13 years ago
parent 6c0702e5e8
commit ac78df3417

@ -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) {

Loading…
Cancel
Save