Users should default to timezone configured in api.php #771
Comments
@wellingguzman @rijkvanzanten — is this App or API? I guess we want to have users created directly in the API to follow this too. |
@benhaynes This is API. Hey @samvasko to make it clear when you refer to the server timezone you referring to the actual server timezone, and not the php default timezone on the server ( |
Based on the title you are talking about the timezone in the project configuration to be used instead of the static In other hand the |
I would expect the default timezone to be the one in You are right. I thought that the .sql was the source. The migration contains New York as well. |
I guess the options would be to either:
|
Correct, but we can configure that to fetch the default timezone before creating the project.
Exactly, fallback to something when the default timezone is empty. |
🍾 |
Bug Report
Default timezone for users is 'America/New_York'.
Expected Behavior
The users inherit the timezone from the
serverapi configuration.Actual Behavior
Timezone is set to 'America/New_York'.
Other Context & Screenshots
Relevant code for admin creation:
https://github.com/directus/api/blob/368684beeb226c1b33af72619abf68ed7631e55a/src/core/Directus/Util/Installation/InstallerUtils.php#L251
Schema configuring the database to default to NYC
https://github.com/directus/api/blob/6898e21872f611be3b9f642c920587a9e707acdc/src/schema.sql#L563
Technical Details
The text was updated successfully, but these errors were encountered: