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

feat: Monday as first day of week in calendar popup #6887

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

gitstart
Copy link
Contributor

@gitstart gitstart commented Nov 6, 2023

Change Summary

closes: #5988

Monday as first day of week in calendar popup

Change type

  • feat: Monday as first day of week in calendar popup

Test/ Verification

Provide summary of changes.

Screenshot 2023-11-03 at 09 59 57

Additional information / screenshots (optional)


This code was written and reviewed by GitStart Community. Growing great engineers, one PR at a time.

Co-authored-by: gitstart <gitstart@gitstart.com>
Co-authored-by: frankmagoba <franklinmagoba4@gmail.com>
Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com>
Copy link
Member

@pranavxc pranavxc left a comment

Choose a reason for hiding this comment

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

The behaviour should be same for DatetimePicker component as well.

Screenshot 2023-11-06 at 5 02 59 PM

It works fine if there is a DatePicker since the change done is globally applied.

Screenshot 2023-11-06 at 5 03 24 PM

So I would prefer to move the datejs change globally somewhere which runs independently globally.

dayjs.extend(updateLocale)
dayjs.updateLocale('en', {
  weekStart: 1,
})

Co-authored-by: gitstart <gitstart@gitstart.com>
Co-authored-by: frankmagoba <franklinmagoba4@gmail.com>
Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com>
@pranavxc pranavxc merged commit 387e0f0 into nocodb:develop Nov 6, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🔦 Feature: Monday as first day of week in calendar popup
2 participants