Problem with hour


Im making an app that gives a tag with diffrent time-stuff as a number-tag, for example current hour.

But when i use the function hourdate.getHours(); i get the hour 1 hour early.
As i understand it the function should return local time.
My computer and my homey is in CET(sweden).

Anyone know what im doing wrong?

Search the forum, the answers you are looking for:


That sucks

Better logic library has this onboard already?