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 ISO-8601 timezone parsing issue #3421
Conversation
I found a second problem in the tooltip of the charts. Am I the only one seeing such issues ? |
@moumny thanks for submitting this so soon after we talked about. Could you write a test that shows a specific failing combination of query and underlying data? |
The fix for the tooltip breaks "computeTimeseriesDataInverval" which expects utc objects. I'll leave that for another PR. Changed Druid driver to output timezone offsets as +HH:mm for consistency purposes. I'm trying to write some small unit tests for the time lib and im having weird results. ISO timestamps with +09:00 are parsed correctly but timestamps UTC offset (Z, or +00:00) are parsed in local time. The same code works fine on a fiddlejs. Any idea ? ` import { parseTimestamp } from 'metabase/lib/time'; describe('time', () => {
});` |
OK its due to that moment/moment#3463. |
@camsaul Can you take a look a this as well ? |
@moumny the Clojure stuff looks fine. @tlrobinson do you want to review the frontend stuff? |
I'll take a look at this. I think I was running into the same or similar issue and came up with a different workaround, but this might be better. |
@moumny I removed my workaround and updated Thanks for tracking down this down and fixing it. |
Great !! thanks all for your help ! |
Superseded by #3453 |
Related to #3386
Druid driver outputs some datetime strings with the format +-hhmm for timezone offset.
In the time.js lib it expacts only +-hh:mm or Z.
Here we can also change Druid driver to output +-hh:mm format but i guess since +hhmm is also stantard its best to make time.js more robust.
Ps: we can do both as well :)
What do you think @salsakran @camsaul ?