phuongquan / mantis

0 stars 0 forks source link

dygraph tooltips sometimes a day off #4

Closed phuongquan closed 6 months ago

phuongquan commented 6 months ago

e.g. in example_data, na_norm first value is on 20 July but the tooltip shows 19 July, BUT the last value on 31 Dec is correct.

also, in sparse_1, value of 1 on 1 Feb shows correctly, but value of 5 on 30 May shows on tooltip as 29 May

phuongquan commented 6 months ago

Caused by implicit conversion of dates to datetimes during construction of xts for the dygraphs, and then daylight savings applied to the timepoints when rendering