Skip to content

Commit

Permalink
fixup! Add timezone getter to ITimeFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Feb 12, 2024
1 parent c213310 commit a349f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/AppFramework/Utility/TimeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function withTimeZone(\DateTimeZone $timezone): static {
}

public function getTimezone(?string $timezone = null): \DateTimeZone {
if($timezone !== null) {
if ($timezone !== null) {
return new \DateTimeZone($timezone);
}
return $this->timezone;
Expand Down

0 comments on commit a349f5e

Please sign in to comment.