Search code examples
pebble-watchpebble-sdkpebble-js

Pebble.js Clock.Weekday function


So, I don't know if I didn't notice before or what but if I use Clock.weekday and assign a day and hour and minute that are very close to the current date (today or tomorrow) it works. If I assign to a day two days later than the current date it says wakeup failed invalid argument when I try to set up a wakeup with that time (time being var time = Clock.weekday(blah blah)...

Am I doing something wrong? or is there a limit with the clock.weekday function?


Solution

  • There was an issue with how moment was being used. It is has now been fixed on master. Thanks for bringing this up!

    Here is the commit with the fix.