Skip to content

Add new field for capturing timezones#632

Merged
jb3 merged 2 commits into
mainfrom
jb3/components/timezone-field
Jul 3, 2024
Merged

Add new field for capturing timezones#632
jb3 merged 2 commits into
mainfrom
jb3/components/timezone-field

Conversation

@jb3
Copy link
Copy Markdown
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
@netlify
Copy link
Copy Markdown

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
Copy Markdown
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
@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