You are reading a single comment by @Narvey and its replies. Click here to read the full conversation.
  • How does one set the time (or especially timezone) in an Espruino environment?
    new Date() is almost always wrong for me, either because offset is 0 or because actual time is wrong.

    Note that I have a pico, but that shouldn't matter as I'm asking how to do this, but for Espruino, not Linux.

  • You can use all the methods of the Javascript Date object I believe, but obviously you need to know what the actual time is. Since a Pico does neither have a battery-buffered RTC nor a GPS it has no way to set the time automatically or store it permanently. Bangle only does it as long as the battery is connected.

    The only (simple) way is to synchronize the time from a PC that it is connected to, but you would need some software on that PC that does it. The Espruino Web IDE does that I believe, but again, the time would be lost once your Pico is unplugged.

About

Avatar for Narvey @Narvey started