diff --git a/inc/spot.php b/inc/spot.php index 7c84643..292d4a1 100755 --- a/inc/spot.php +++ b/inc/spot.php @@ -388,7 +388,7 @@ class Spot extends Main $asPosts = $this->oDb->selectRows($asInfo); foreach($asPosts as &$asPost) { - $iUnixTimeStamp = strtotime($asPost['site_time']); //assumes site timezone (Settings::TIMEZONE) + $iUnixTimeStamp = strtotime($asPost['site_time']); //assumes site timezone $asPost['formatted_name'] = Toolbox::mb_ucwords($asPost['name']); unset($asPost[Db::getId(User::USER_TABLE)]); @@ -622,7 +622,7 @@ class Spot extends Main return $this->oLang->getTranslation('date_time', array($sDate, $sTime)); } - public function getTimeZoneFromDate($sDate) { + public static function getTimeZoneFromDate($sDate) { $sTimeZone = null; preg_match('/(?(\+|\-)\d{2}:?(\d{2}|))$/', $sDate, $asMatch);