Skip to content

Commit 4349c43

Browse files
committed
Fix Deprecation Warning
1 parent d8583ce commit 4349c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Timezones/Timezones.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Timezones
5555
*/
5656
public static function formatTimezone($timezone, $region)
5757
{
58-
$time = new DateTime(null, new DateTimeZone($timezone));
58+
$time = new DateTime('now', new DateTimeZone($timezone));
5959
$str_offset = $time->format('P');
6060

6161
//clean up the html display

0 commit comments

Comments
 (0)