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

Date incorrectly parsed for browsers in UTC+ timezones #14

Closed
trafton opened this issue Aug 19, 2021 · 2 comments · Fixed by #15
Closed

Date incorrectly parsed for browsers in UTC+ timezones #14

trafton opened this issue Aug 19, 2021 · 2 comments · Fixed by #15
Assignees
Labels
released Completed work has been released Type: Bug Bug or Bug fixes

Comments

@trafton
Copy link

trafton commented Aug 19, 2021

Describe the bug

Flight Search needs to work correctly from any time zone

When a user is using a browser in a time zone in Europe and Asia, i.e., UTC-0 through UTC-+12, this component will incorrectly parse the date resulting in it rendering the day before even though the underlying data contains the correct date.

To Reproduce

Steps to reproduce the behavior:

  1. Set the time zone of your computer to any positive time zone, e.g., Amsterdam.
  2. Go to ascom and search for any flight.
  3. When you get to the matrix results page, note that the shoulder dates are one off.
  4. If you inspect the auro-pane element, you will see that it had the correct date, but was parsed incorrectly,

Expected behavior

The auro-pane element will show the correct date regardless of the user's time zone.

Screenshots

image
apcode
apcode2

@blackfalcon
Copy link
Member

This issue has been discussed with the Auro team and we are actively looking into a solution and potential release ASAP.

AuroDesignSystem pushed a commit that referenced this issue Aug 19, 2021
## [1.1.3](v1.1.2...v1.1.3) (2021-08-19)

### Bug Fixes

* correct date formatting in UTC+ timezones [#14](#14) ([db68120](db68120))
@AuroDesignSystem
Copy link
Collaborator

🎉 This issue has been resolved in version 1.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@AuroDesignSystem AuroDesignSystem added the released Completed work has been released label Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Completed work has been released Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants