From 2c4677b79ee657d2ab9f4e2592924391a7814f79 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 18 Jun 2012 11:05:42 +0200 Subject: [PATCH] [feature/new-tz-handling] Remove function getTimestamp() as we require php 5.3 PHPBB3-9558 --- phpBB/includes/datetime.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/phpBB/includes/datetime.php b/phpBB/includes/datetime.php index ec2cb3f471..0cb4c79a10 100644 --- a/phpBB/includes/datetime.php +++ b/phpBB/includes/datetime.php @@ -44,24 +44,6 @@ class phpbb_datetime extends DateTime parent::__construct($time, $timezone); } - /** - * Returns a UNIX timestamp representation of the date time. - * - * @internal This method is for backwards compatibility with 5.2, hence why it doesn't use our method naming standards. - * @return int UNIX timestamp - */ - public function getTimestamp() - { - static $compat; - - if (!isset($compat)) - { - $compat = !method_exists('DateTime', 'getTimestamp'); - } - - return !$compat ? parent::getTimestamp() : (int) parent::format('U'); - } - /** * Formats the current date time into the specified format *