Skip to content

fix(dav): Prioritize timezone from core/login - #41866

Merged
ChristophWurst merged 1 commit into
masterfrom
fix/dav/login-timezone
Nov 29, 2023
Merged

fix(dav): Prioritize timezone from core/login#41866
ChristophWurst merged 1 commit into
masterfrom
fix/dav/login-timezone

Conversation

@ChristophWurst

@ChristophWurstChristophWurst commented Nov 29, 2023

Copy link
Copy Markdown
Member

Summary

The DAV app tries to guess a user's timezone from the calendar timezones and the availability settings. It turns out Nextcloud already tracks a timezone, set when a user logs in. Let's use that as primary source, then fall back to calendar timezones and availability timezone.

How to test

  1. Set your calendar timezones to your home timezone
  2. Travel to a different timezone
  3. Log in
  4. Use code that accesses the timezone server

Master: calendar timezone is used
Here: login timezone is used

In the long run we should probably only set, not update the timezone at login, and make the timezone configurable via the personal settings.

Checklist

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

/backport to stable28

@tcitworldtcitworld left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

'core',
'timezone',
);
if ($fromConfig !== '') {

@tcitworldtcitworldNov 29, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to say that the value might not be a valid timezone ID, but someone fixed that a couple of months ago. #36001 🙈

Older values might still be bad though, as I didn't add a repair step.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good enough IMO. The value is set at every login.

@ChristophWurstChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 29, 2023
@ChristophWurst
ChristophWurst merged commit c29eaf5 into masterNov 29, 2023
@ChristophWurst
ChristophWurst deleted the fix/dav/login-timezone branch November 29, 2023 14:01
@blizzzblizzz mentioned this pull request Mar 5, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants

@ChristophWurst@tcitworld@miaulalala