martinberlin / cale-integrations

CALE configurator to add APIs to your epaper screens - PHP/Symfony 4.4
https://cale.es
MIT License
6 stars 0 forks source link

99/99 Handle Timezone at user->Profile level and also independantly per Api Integration #5

Closed martinberlin closed 4 years ago

martinberlin commented 4 years ago

As a base we can use this methodology:

CHECK: https://doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/working-with-datetime.html For starters: There is not a single database out there (supported by #Doctrine 2) that supports timezones correctly. Apart of saving this save at user level additionally:

  1. Timezone ex. America/Nevada
  2. DateFormat as default d.m.Y 19.02.2020
  3. HourFormat as default H:i 08:04

The idea is that a user can be living in timezone Asia/Tokio and needs of course to see the Datetime displayed in his local hour. But at the same time give the possibility to copy this as default from profile to each ApiIntegration (ex. Weather in Berlin) but giving the user the possibility to change it at that level.

So as a user I would like to have Asia/Tokio displayed as default in all my Screens except in this partial widget where I want to have the Weather of another city with their local time.

As a second task in this Issue fix the password recovery: ResettingController

martinberlin commented 4 years ago

Done