Skip to content

Commit

Permalink
Use timezone constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Dec 31, 2024
1 parent 5d179d5 commit d3fcdfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/php/de/thekid/dialog/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function routes() {
'/' => new Frontend(
new HandlersIn('de.thekid.dialog.web', $inject->get(...)),
new Handlebars($this->environment->path('src/main/handlebars'), [
new Dates(TimeZone::getByName('Europe/Berlin')),
new Dates(new TimeZone('Europe/Berlin')),
new Numbers(),
new Assets($manifest),
$inject->get(Helpers::class),
Expand Down
2 changes: 1 addition & 1 deletion src/main/php/de/thekid/dialog/processing/Processing.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use util\TimeZone;

abstract class Processing {
protected static $UTC= TimeZone::getByName('UTC');
protected static $UTC= new TimeZone('UTC');
protected $targets= [];

/** Returns processing kind */
Expand Down

0 comments on commit d3fcdfc

Please sign in to comment.