02-28-2018 15:44 - edited 03-03-2018 16:26
02-28-2018 15:44 - edited 03-03-2018 16:26
It appears that when I use the date.toDateString() method, I get the UTC date
The Date object is what is passed into clock.ontick()
This documentation doesn't say whether the clock.ontick() passes local or UTC date:
build slant reference slant device-api slant clock
(I can't believe it won't let me pass a fitbit URL, this ought to be allowed as well)
It'd be good to enhance this doc with that information.
How do I get the local date instead of the UTC date from the clock.ontick object?
03-03-2018 15:40
03-03-2018 15:40
It looks like if you want the local date, you can't use the toDateString, you have to concatinate the individual values.
getDate() gives local date
getUTCDate() gives UTC date