Skip to content

Conversation

@SergioGlorias
Copy link
Member

Become a bit like in the past, but with the possibility to switch

@SergioGlorias SergioGlorias force-pushed the auto-timezone branch 2 times, most recently from 72cdec4 to 6f09d6d Compare June 18, 2025 21:58
Comment on lines +2 to +3
$('.form3[action="/broadcast/new"] #form3-info_timeZone').each(function (this: HTMLSelectElement) {
if (!$('.is-invalid').length) this.value = Intl.DateTimeFormat().resolvedOptions().timeZone;
Copy link
Member Author

Choose a reason for hiding this comment

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

It was the best way I found to prevent changes if there is an error or if it's in the edit form.

Copy link
Contributor

Choose a reason for hiding this comment

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

if this is specific to the 4 best players, i don't understand an assumption they would all be in the same time zone and i don't understand why we would want to default it to the timezone of the person filling this form.

but if this is what you want to do, lgtm

Copy link
Contributor

Choose a reason for hiding this comment

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

(that's a declaration of my ignorance, not a review objection)

@ornicar ornicar merged commit 4d76095 into lichess-org:master Jun 24, 2025
6 checks passed
ornicar added a commit that referenced this pull request Jun 24, 2025
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.

3 participants