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

Fix sub-hour for dateToLocaleISOString #5114

Merged

Conversation

marclundgren
Copy link
Contributor

@marclundgren marclundgren commented Mar 30, 2024

Fixes #5080

Changelog Entry

Description

This pull request addresses an issue with the dateToLocaleISOString function, which was generating incorrect values for time zones that have negative offsets, especially those with an additional 30-minute component, such as Newfoundland, Canada. The underlying problem was traced back to the incorrect calculation of the minutes portion of the date for negative offsets, failing to accurately represent the absolute value.

  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@compulim compulim changed the title Marclundgren/date to locale iso string bufix Fix sub-hour for dateToLocaleISOString Mar 30, 2024
@marclundgren marclundgren force-pushed the marclundgren/dateToLocaleISOString-bufix branch from b69f06b to 546a64e Compare March 30, 2024 23:32
@compulim
Copy link
Contributor

compulim commented Apr 2, 2024

Need to update CHANGELOG.md and we should be good.

@compulim
Copy link
Contributor

compulim commented Apr 4, 2024

Will help you out on CHANGELOG.md if I have some spare time today.

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.

dateToLocaleISOString is returning an invalid value
2 participants