I'm having trouble with some time formats.
The time, I collect from ES ("timetal") is in UTC+02, but when I try to format it to my local time, it seems to subtract 2 hours instead of adding them.
My SQL query is as follows:
SELECT HISTOGRAM(datetime_, INTERVAL 1 HOUR) as timetal, COUNT(reference_) as logins FROM "*canvas" GROUP BY timetal
My canvas expession is as follows:
filters
| essql
query="SELECT HISTOGRAM(datetime_, INTERVAL 1 HOUR) as timetal, COUNT(reference_) as logins FROM "*canvas" GROUP BY timetal"
| alterColumn column="timetal" type="date"
| mapColumn name="formatted_timetal" fn={getCell "timetal" | formatdate "D/M HH:mm"}
| table
| render
And my output looks like this:
My desired output is taking the raw time from "timetal" and adding the two hours, so I get a cleaner view in "formatted_timetal".
So for the first row "2019-07-16T08:00:00+02:00" should map to "16/7 10:00".
SImply adding two hours manually will not work, as we will publish this to a customer and can't update the additions with daylight savings.