tine-groupware / tine

tine groupware main repository
https://www.tine-groupware.de
GNU Affero General Public License v3.0
14 stars 2 forks source link

Set Logtime to local time #44

Closed mokraemer closed 4 months ago

mokraemer commented 7 months ago

At the moment loggin is done with a timestamp set to UTC. This is irritating, as system logs are shown/converted to the local time. At least the default should be local time, not UTC

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 30 days with no activity. Comment or remove the stale label. Otherwise, it will be closed in 7 days.

mokraemer commented 6 months ago

still relevant

github-actions[bot] commented 5 months ago

This issue is stale because it has been open 30 days with no activity. Comment or remove the stale label. Otherwise, it will be closed in 7 days.

mokraemer commented 5 months ago

still relevant

pschuele commented 4 months ago

the logger timezone can be configured via the 'tz' option:

'logger' => [
  'tz' => 'America/Los_Angeles',
// [...]
]

see https://www.php.net/manual/de/function.date-default-timezone-set.php for supported timezones...

pschuele commented 4 months ago

we could also think about adding a "detect/auto" option (ini_get('date.timezone')).

mokraemer commented 4 months ago

sure. In php it is mandatory to set the timezone

mokraemer commented 4 months ago

php -r "echo ini_get('date.timezone');" Europe/Berlin