Got it, looks like the json format written for dates changed in new firmware:
require("Storage").writeJSON("test.json", new Date()); >require("Storage").readJSON("test.json",1) ={ ms: 1710748136790.38647460937 }
earlier it was saved in a format like this:
>JSON.stringify(new Date()) ="\"2024-03-18T07:51:46.241Z\""
@Gordon Is that intentional? I don't see it in the changelog up to firmware 2v21
@user140377 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Got it, looks like the json format written for dates changed in new firmware:
earlier it was saved in a format like this:
@Gordon Is that intentional? I don't see it in the changelog up to firmware 2v21