Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display the current timezone in date time picker fields #10818

Merged
merged 5 commits into from Oct 3, 2021

Conversation

MrPetovan
Copy link
Collaborator

@MrPetovan MrPetovan commented Oct 3, 2021

Closes #10691
Closes #10737

While working on this PR, I got severely side-tracked but I believe it's for the common good. The main change is the removal of the adjust field in the event table. It was confusing and unwieldy, both in the interface and in the code. Removing it made the code clearer and opens the path to an actual solution for birthdays, once we'll figure out how we're supposed to do it.

The next improvement is ditching date_default_timezone_* calls. Having the node (or currently logged user) timezone in a single place in the App enables a better control. date_default_timezone_set() is kept in a single place to avoid Warning messages on systems where no default timezone is defined in the PHP configuration.

The last one is a fix for the calendar in Frio that wasn't showing the correct time for events. This is now fixed. vier was correctly showing the event times.

- It was wrongly used to set the node-wide ot user-specific timezone
- It is now fully managed from the App object
- Add a static variable to DateTimeFormat maintain the convenient local() method
- It was confusing and introduced complexity that wasn't worth the unclear gain
@MrPetovan
Copy link
Collaborator Author

MrPetovan commented Oct 3, 2021

friendica-compose-scheduled-timezone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scheduled Posts - Display Timezone Scheduled Posts - Timezone problem with datetimepicker
3 participants