mirror of
https://github.com/apache/superset.git
synced 2024-09-12 16:49:40 -04:00
Evelynturner/annotation timezone fix2 (#4550)
* Fix how the annotation layer interpretes the timestamp string without timezone info; use it as UTC * Fix how the Interval annotation layer interpretes the timestamp string without timezone info; use it as UTC
This commit is contained in:
parent
9ad50c9d55
commit
42ebcaad40
@ -670,8 +670,8 @@ function nvd3Vis(slice, payload) {
|
||||
const tip = tipFactory(e);
|
||||
|
||||
const records = (slice.annotationData[e.name].records || []).map((r) => {
|
||||
const timeColumn = new Date(r[e.timeColumn]);
|
||||
const intervalEndColumn = new Date(r[e.intervalEndColumn]);
|
||||
const timeColumn = new Date(moment.utc(r[e.timeColumn]));
|
||||
const intervalEndColumn = new Date(moment.utc(r[e.intervalEndColumn]));
|
||||
return {
|
||||
...r,
|
||||
[e.timeColumn]: timeColumn,
|
||||
|
Loading…
Reference in New Issue
Block a user