replace DateTime::getTimestamp() with DateTime::format('U') for PHP 5.2 compatibility