Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
fix utc to local datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Apr 13, 2024
1 parent b12f84f commit ac6165d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/toolbox.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function utcToLocal($utc, ?int $format = null): string
return '';
}
if (!is_a($utc, DateTime::class)) {
$utc = new DateTime($utc);
$utc = new DateTime($utc, new DateTimeZone('UTC'));
}
$mask = 'Y-m-d H:i:s';

Expand Down

0 comments on commit ac6165d

Please sign in to comment.