-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Stats Traffic: Card information fails to load when date cannot be parsed when returned from API #22859
Comments
Thanks for reporting! 👍 |
The bug is reproducible and looks to be tightly related to TimeZones and DTS. The one used in Paraguay has a DTS change at midnight 10-01 which is ambiguous to DateFormatter:
SolutionIn documentation Apple suggests to set the timezone to UTC:
However, this is not a straightforward solution, since in Stats we're working with the dates that are in site's timezone. |
Closing as won't fix. See #22910 (comment) |
self.periodDataQueryDateFormatter.date(from: "2023-10-01") returns nil resulting in "An error occurred" messages shown on Stats Traffic cards
From #22826 (review)
I thought it might be related to Oct having six calendar weeks, but it looks to be related to DST kicking in in my timezone on Oct 1st.
The text was updated successfully, but these errors were encountered: