Skip to content

Commit c5828fb

Browse files
authored
Merge pull request #9 from derUli/main
PHP 8.1 Deprecation warning fixed
2 parents d8583ce + 4349c43 commit c5828fb

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)