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

Add new field for capturing timezones #632

Merged
merged 2 commits into from
Jul 3, 2024
Merged

Conversation

jb3
Copy link
Member

@jb3 jb3 commented Jul 3, 2024

Add a new field for automatically capturing the users timezone.

image

This should be fairly reliable on most browsers and timezones, I've included all recognised UTC timezones from Wikipedia. Of course, the component allows for manual overriding if the user is not correctly categorised.

@jb3 jb3 requested a review from ks129 as a code owner July 3, 2024 16:05
Copy link

netlify bot commented Jul 3, 2024

Deploy Preview for pydis-forms ready!

Name Link
🔨 Latest commit 1b25aa2
🔍 Latest deploy log https://app.netlify.com/sites/pydis-forms/deploys/66857dafd99fd900083a8dcb
😎 Deploy Preview https://deploy-preview-632--pydis-forms.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jb3 jb3 force-pushed the jb3/components/timezone-field branch from 39801cf to 0b697ff Compare July 3, 2024 16:12
mbaruh
mbaruh previously approved these changes Jul 3, 2024
@jb3 jb3 force-pushed the jb3/components/timezone-field branch from 0ff1283 to 1b25aa2 Compare July 3, 2024 16:34
@jb3
Copy link
Member Author

jb3 commented Jul 3, 2024

Also for reference, the display if for some reason the client reports a non-recognised UTC offset.

image

@jb3 jb3 merged commit d2cef93 into main Jul 3, 2024
8 of 9 checks passed
@jb3 jb3 deleted the jb3/components/timezone-field branch July 3, 2024 17:19
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.

2 participants