diff --git a/src/Timezones/Timezones.php b/src/Timezones/Timezones.php index 92c7c7d..2472102 100644 --- a/src/Timezones/Timezones.php +++ b/src/Timezones/Timezones.php @@ -212,7 +212,7 @@ public function toArray() * * @return string */ - public function convertFromUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s') + public static function convertFromUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s') { $date = new DateTime($timestamp, new DateTimeZone('UTC')); @@ -233,7 +233,7 @@ public function convertFromUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s') * * @return string */ - public function convertToUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s') + public static function convertToUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s') { $list = DateTimeZone::listIdentifiers(); if (!in_array($timezone, $list)) {