Skip to content

Commit

Permalink
make the helper methods static
Browse files Browse the repository at this point in the history
  • Loading branch information
jessedp committed Feb 22, 2018
1 parent f46ab31 commit 0ebf9c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Timezones/Timezones.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand All @@ -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)) {
Expand Down

0 comments on commit 0ebf9c4

Please sign in to comment.