OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › home.js – LOG TZ Fix request. › Re: Re: home.js – LOG TZ Fix request.
September 22, 2013 at 9:32 am
#25557
Ray
Keymaster
Well, my original implementation uses this:
dstr=(new Date(lret*1000)).toUTCString().replace(” GMT”,””);
which prints out neither ‘GMT’ nor ‘UTC’. So I am actually a bit curious when you said it prints ‘UTC’. Perhaps the behavior is different on different browser. In any case, adding the time zone number is an improvement.