Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendTime => UTC time instead of local time #23

Open
math63 opened this issue Oct 7, 2019 · 1 comment
Open

sendTime => UTC time instead of local time #23

math63 opened this issue Oct 7, 2019 · 1 comment

Comments

@math63
Copy link

math63 commented Oct 7, 2019

When you use "requestTime" function on a node to request date and time from the controller. The answer is always UTC time with jeedom.
If think local time is more usefull than UTC for IOT that don't know their timezone.
Tell me if i'm wrong .

can we use :
var payload = new Date().getTime()/1000 + new Date().getTimezoneOffset()*60;
instead of
var payload = new Date().getTime()/1000;

Regards,
Mathieu

@dav-33
Copy link

dav-33 commented Jan 21, 2021

Hi,
Même demande svp :) (en attendant je change directement dans le source)
Merci bcp pour le plugin !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants