ida-arbeitszeit / arbeitszeitapp

A webapp for labour-time calculation.
https://arbeitszeitapp.readthedocs.io
GNU Affero General Public License v3.0
36 stars 4 forks source link

Make timezone of application configurable #459

Open sloschert opened 2 years ago

sloschert commented 2 years ago

The default timezone (Europe/Berlin) is currently hard coded in different places in the application. It should be made configurable (probably in arbeitszeit_flask/configuration_base.py) and imported in a central place (probably in datetime_service).

seppeljordan commented 2 years ago

IMO we should handle all timestamps internally as UTC. Only when we output a timestamp to some user we should convert it to the desired timezone.

Default timezone makes sense. In the future we could give users the possibility to store their timezone in the user profile. This would make the application more convenient across timezone borders. This is an issue that users in larger countries like the USA or Russia would be concerned with.