aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/datetime.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-06-18 11:05:42 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-06-18 15:10:50 +0200
commit2c4677b79ee657d2ab9f4e2592924391a7814f79 (patch)
treecfe24b331e48259fe230c39507557adb80ad3c7e /phpBB/includes/datetime.php
parentfb77b6b70cb0fde351209593ea5897b2fd2e5174 (diff)
downloadforums-2c4677b79ee657d2ab9f4e2592924391a7814f79.tar
forums-2c4677b79ee657d2ab9f4e2592924391a7814f79.tar.gz
forums-2c4677b79ee657d2ab9f4e2592924391a7814f79.tar.bz2
forums-2c4677b79ee657d2ab9f4e2592924391a7814f79.tar.xz
forums-2c4677b79ee657d2ab9f4e2592924391a7814f79.zip
[feature/new-tz-handling] Remove function getTimestamp() as we require php 5.3
PHPBB3-9558
Diffstat (limited to 'phpBB/includes/datetime.php')
-rw-r--r--phpBB/includes/datetime.php18
1 files changed, 0 insertions, 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
@@ -45,24 +45,6 @@ class phpbb_datetime extends DateTime
}
/**
- * 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
*
* @param string $format Optional format to use for output, defaults to users chosen format