Acknowledged

UserProfile API returning incorrect sleepTime

I'm trying to get the user specified sleep time with the call:

var time = UserProfile.getProfile.sleepTime;

Unfortunately, the value returned does not match what is set on my Venu3.  If I set the sleep time to 12:00AM this API returns a Time.Duration representing 10:00PM.  I'm reasonably sure my code is correct because the sample app UserProfile exhibits the same error.

Note, this code and the UserProfile app both work correctly in the simulator, it's only on real hardware that there is a problem.

Parents Comment Children