Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Calendar heatmap dates shifted by one (converting to local time zone) #52

Closed
3 tasks done
ghost opened this issue Apr 10, 2019 · 7 comments
Closed
3 tasks done
Labels
#bug Something isn't working

Comments

@ghost
Copy link

ghost commented Apr 10, 2019

@hyperborea commented on Jan 8, 2019, 5:17 PM UTC:

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Related to #3326, which is closed but has not been resolved.

Superset version

0.28.1

Expected results

Time is displayed consistently in the same time zone on the calendar heat map as for the data queried. The January day view should start with the 1st of January for example.

Actual results

The January day view starts with the 31st of December 23:00 for setups using CET. The data is queried correctly in UTC, but somehow seems to be displayed in local time zone instead.

Steps to reproduce

  • create calendar heatmap
  • configure with "day" time grain, "month" domain and "day" subdomain
  • observe months starting with the previous months day for time zones east of GTM and all days shifted accordingly

This issue was moved by kristw from apache/incubator-superset#6619.

@ghost ghost added the #bug Something isn't working label Apr 10, 2019
@ghost
Copy link
Author

ghost commented Apr 10, 2019

stale[bot] commented on Apr 10, 2019, 9:59 AM UTC:

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@lewlh
Copy link

lewlh commented Apr 24, 2019

I have the same problem。

1 similar comment
@priyajos
Copy link

I have the same problem。

@karbofoko
Copy link

have the same problem, any plans to fix this?

@karbofoko
Copy link

it seems dates are shifting only in the tooltip, rest logic works fine (days of the week, values by dates).
Shifting date back before formatting in the tooltip fixed problem for us:
${self.options.timeFormatter(d.t + 24*60*60*1000)}:...

${self.options.timeFormatter(d.t)}: <strong>${self.options.valueFormatter(d.v)}</strong>

don't forget to reset browser cache

@dofine
Copy link

dofine commented Mar 17, 2020

Any progress on this, please?

nytai pushed a commit to preset-io/superset-ui-plugins that referenced this issue Apr 27, 2020
@ghost ghost deleted a comment from kristw Apr 28, 2020
@ghost
Copy link
Author

ghost commented Apr 28, 2020

This issue was moved by kristw to apache-superset/superset-ui#409.

@ghost ghost closed this as completed Apr 28, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
#bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants