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

1073 support different locales and timezones #1091

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

junaidzm13
Copy link
Contributor

@junaidzm13 junaidzm13 commented Dec 29, 2023

This MR builds on top of #1087 by adding functionality to allow users to choose date/time locale and timezone.

Users can specify locale/timezone on a table level (open to suggestions if we'd like to have these on app/column level, I just think its hard/odd to think of a usecase where users would want to have different locales/timezones for different columns within the same table). Having it on table level in my view, provides just enough flexibility.

In case the users do not specify locale/timezone, it fallsback to the user's defaults (for instance in the screenshot below, it falls back to en-GB/HongKong for me).

For now I've only added a few options (other than the user's defaults) for locale/timezone in the dropdowns. We can always add more or just stick with a few most used. Open to suggestions.

Screenshot 2024-01-02 at 12 28 39 PM

  1. The MR also adds a new option to date/time patterns to enable formatters to display the selected timezone:
    Screenshot 2024-01-02 at 12 29 49 PM

Copy link

netlify bot commented Dec 29, 2023

Deploy Preview for papaya-valkyrie-395400 canceled.

Name Link
🔨 Latest commit 55b7e7d
🔍 Latest deploy log https://app.netlify.com/sites/papaya-valkyrie-395400/deploys/6594c608b4b4e500083e8676

@junaidzm13 junaidzm13 force-pushed the 1073-support-different-locales-and-timezones branch 7 times, most recently from 2727b7d to 1f7a584 Compare January 2, 2024 04:04
@junaidzm13 junaidzm13 force-pushed the 1073-support-different-locales-and-timezones branch from 1f7a584 to 55b7e7d Compare January 3, 2024 02:27
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.

None yet

1 participant