-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi,
First of all, thanks for this library! This saves me parsing the raw result 👍
I was just wondering, are you sure the date for gas readings is accurate?
For electricity, I get the following result (just using system time, new Date()):
date: Sun Nov 08 2015 23:08:00 GMT+0000 (UTC)
But for gas, I get the following result
date: Wed Dec 09 2015 00:00:00 GMT+0000 (UTC)
Which is way off.
Why are you parsing it like this?
data.gas.date = new Date("20" + res[2].substring(0,2), res[2].substring(2,4), res[2].substring(4,6), res[2].substring(6,8), res[2].substring(8,10), res[2].substring(10,12), 0);
Could this issue have something to do with my system time being on UTC?
Is it accurate in your case?
Thanks a lot!
-Dennis
Metadata
Metadata
Assignees
Labels
No labels