I update to 3.80~25 today and some function nodes use the date.toLocaleString(“nl-NL”). They output a very strange string with Minutes-| and Seconds-| in the output. I am not a node red specialist, but also using locale en-US the output is strange. This is happening on 2 of my cerbo’s. Did not happen on ~22.
Anything I missed? Something to do with upgrade to node red 4.1.10?
No, I limited the installed locales to the languages supported by Node-RED, it is not related to the Node-RED version. Node uses icu for locale info and it is relatively large for an embedded system. Especially since nodejs, Node-RED and Signal K typically become larger over time, we remove unused files to keep the image small enough to fit.
Apparently there are use cases, besides the supported translations, which depend on this. Which function is that? For what it is worth, we freed up enough space, so I can simply add all of them back, but that is actually more then needed though, but an easy solution.
Well so in that sense it is related to the Node-RED 4.1.10 / Signal K update, but not because of their version, but because we need to make room for it to make the update possible.
I use it for date time stamps in my data files and to show data on screen (Dashboard) with the proper date time format.
Attached the simple node red functions I use to generate the readable date time stamp. As you can see in my commented code I already figured out how I can still be able to get a normal output (first option). Question now is will it come back or not? I understand the need for memory etc.
Just to let you know that no formatting works anymore! I also tried with options and no success.