From 8ef47c8e4a3fb0094b4b0c19df8ed18c58cf7a6f Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Thu, 29 Jan 2015 03:48:23 +0000 Subject: refs #4633 open segmented visitor log with one click on a row --- core/Date.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/Date.php') diff --git a/core/Date.php b/core/Date.php index 909f7adb0e..63c6384729 100644 --- a/core/Date.php +++ b/core/Date.php @@ -627,6 +627,14 @@ class Date return $out; } + public function getHourInUTC() + { + $dateTime = $this->getDatetime(); + $hourInTz = Date::factory($dateTime, 'UTC')->toString('G'); + + return $hourInTz; + } + /** * Adds `$n` days to `$this` date and returns the result in a new Date. * instance. -- cgit v1.2.3