I have an issue with charting in habmin2 in oh2 where it only charts up to GMT, not GMT-10 (my timezone). Habmin seems to think the last 24 hours is in fact 34-10 hours ago. Can’t figure it out, not sure if it is a bug or some kind of misconfiguration.
Using rrd4j and data appears to be in unix time and correct.
Rest query gives data back correctly with expected unix time.
habmin2 displays correct data at correct time on chart, but only displays data up to 10 hours ago (my timezone is GMT-10, but set correctly as Australia/Melbourne).
I have done things like forced temp or humidity on a sensor high to be sure the data presented is correct. As an example, I force humidity to 90% at midnight. I look at the habmin2 graph at 1am, and the last data presented only goes up to 3pm, there is no spike at 12pm (so the data is not being displayed with the wrong time representation, it’s just not displaying the last 10 hours of data. I wait until 11am, and I can see data up to 1am, with a spike in the Humidity to 90% at 12am, which was when it actually occurred.
- Timezone appears to be set correctly and all other timestamps on box, within openhab, in logs etc, are all correct to local time.
CONCLUSION: habmin2 is querying rrd4j for data and converting to localtime correctly, but the calculation for the start and end of the “last day” or whatever period it is asked to chart is NOT having the local timezone applied. When asked to chart the last 24 hours, it is actually charting the period 34-10 hours ago.
What I don’t know is if this is due to a misconfiguration somewhere or a bug. OS is Centos 7 and openhab2 with HABmin2 snapshot Version 0.15, 2016-05-07T15:54:47