Skip to content

Commit

Permalink
Merge pull request #105 from BobRyan530/api_timezone_fix
Browse files Browse the repository at this point in the history
Timezone offset in Api.php is in seconds, not hours
  • Loading branch information
mbolli authored Mar 13, 2024
2 parents dea3416 + fdc8f9d commit ee6e09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function config() {
'daemon_running' => $daemon_running,
'frontend' => $frontend,
'version' => Config::VERSION,
'tz_offset' => (new \DateTimeZone(date_default_timezone_get()))->getOffset(new \DateTime('now', new \DateTimeZone('UTC'))),
'tz_offset' => (new \DateTimeZone(date_default_timezone_get()))->getOffset(new \DateTime('now', new \DateTimeZone('UTC'))) / 3600,
];
}

Expand Down

0 comments on commit ee6e09b

Please sign in to comment.