-
Notifications
You must be signed in to change notification settings - Fork 2k
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
DateTimeFormat - restructure constructor parameters #11544
Conversation
The next step is to add options_timeZoneName_parameter.
|
This works, I wonder if we're nesting too deep at this point. I think it wouldn't hurt to have it at the same level. I have no strong feeling.
I think that makes sense, yes.
I can't unfortunately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given options
is an object, a dot feels better to me.
Co-authored-by: Florian Scholz <[email protected]>
Co-authored-by: Florian Scholz <[email protected]>
Co-authored-by: Florian Scholz <[email protected]>
Co-authored-by: Florian Scholz <[email protected]>
Co-authored-by: Florian Scholz <[email protected]>
Co-authored-by: Florian Scholz <[email protected]>
Co-authored-by: Florian Scholz <[email protected]>
…where not already
@Elchi3 Thanks for your review and advice: #11544 (comment) I have merged your suggestions, and also updated the timeZone versions to match the constructor, where they didn't already. Lastly I have added the timeZoneName option and iana subfeatures, mirroring those for timeZone. That makes sense because whether or not it is too deeply nested, we should be consistent. All other browsers are marked false for the new feature - though I only tested on latest Chrome. I think ready for rereview. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Hamish! 👍
This PR affected the following features: Removed
Added
|
* Bump version to v3.3.12 * Add release note for #11661 * Add release notes for #11173 and #11175 * Add release note for #11534 * Add release note for #11544 * Add release note for #11551 * Add release note for #11555 * Add release note for #11556 * Add release note for #11557 * Add release note for #11633 * Add release note for #11636 * Add release note for #11637 * Add release note for #11530 * Add release stats and date * Consolidate Safari for iOS version consolidation notes * Format PR URL
This follows on from #11501
This is just the first step - restructure the constructor to use subfeatures for parameters, and subfeatures of those for options.
I am in no way sure this is "correct" so this is a first step.
Following on from this I will need to add the new values for timeZoneName added in FF91 - see https://bugzilla.mozilla.org/show_bug.cgi?id=1710429.