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

fix: use first day of week setting from server #6134

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Jul 10, 2024

Ref #384 (does not solve the issue but helps with it)

Initialize moment, FullCalender and our date picker using the global first day of week setting from server. It is currently derived from a user's locale and provided by @nextcloud/l10n.

This should make Calendar more consistent with the locale preview in the personal user settings (below the locale select).

https://github.com/nextcloud-libraries/nextcloud-l10n/blob/b65c8b6d9ff9c3178aeae466ccdc7a8e1406cf32/lib/date.ts#L5-L17

Initialize moment, FullCalender and our date picker using the global
first day of week setting from server. It is currently derived from a
user's locale and provided by `@nextcloud/l10n`.

Signed-off-by: Richard Steinmetz <[email protected]>
@st3iny st3iny added 3. to review Waiting for reviews bug language l10n and translations labels Jul 10, 2024
@st3iny st3iny added this to the v4.8.0 milestone Jul 10, 2024
@st3iny st3iny self-assigned this Jul 10, 2024
@st3iny
Copy link
Member Author

st3iny commented Jul 10, 2024

/backport to stable4.7

@backportbot backportbot bot added the backport-request A backport was requested for this pull request label Jul 10, 2024
Copy link

codecov bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 24.08%. Comparing base (04db832) to head (3203378).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #6134   +/-   ##
=========================================
  Coverage     24.08%   24.08%           
  Complexity      457      457           
=========================================
  Files           247      247           
  Lines         11534    11532    -2     
  Branches       2165     2166    +1     
=========================================
  Hits           2778     2778           
+ Misses         8441     8439    -2     
  Partials        315      315           
Flag Coverage Δ
javascript 15.56% <ø> (+<0.01%) ⬆️
php 59.52% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@st3iny st3iny merged commit ea0e759 into main Jul 10, 2024
42 checks passed
@st3iny st3iny deleted the fix/use-first-day-from-server branch July 10, 2024 07:14
@backportbot backportbot bot removed the backport-request A backport was requested for this pull request label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug language l10n and translations
Projects
Development

Successfully merging this pull request may close these issues.

2 participants