Skip to content

Commit 0ebf9c4

Browse files
committed
make the helper methods static
1 parent f46ab31 commit 0ebf9c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Timezones/Timezones.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function toArray()
212212
*
213213
* @return string
214214
*/
215-
public function convertFromUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s')
215+
public static function convertFromUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s')
216216
{
217217
$date = new DateTime($timestamp, new DateTimeZone('UTC'));
218218

@@ -233,7 +233,7 @@ public function convertFromUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s')
233233
*
234234
* @return string
235235
*/
236-
public function convertToUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s')
236+
public static function convertToUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s')
237237
{
238238
$list = DateTimeZone::listIdentifiers();
239239
if (!in_array($timezone, $list)) {

0 commit comments

Comments
 (0)