tine-groupware / tine

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

Set Logtime to local time #44

Closed mokraemer closed 2 weeks ago

mokraemer commented 3 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 2 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 2 months ago

still relevant

github-actions[bot] commented 1 month 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 1 month ago

still relevant

pschuele commented 2 weeks 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 2 weeks ago

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

mokraemer commented 2 weeks ago

sure. In php it is mandatory to set the timezone

mokraemer commented 2 weeks ago

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