I run a kind of Linux but it is an QNAP NAS (TS-419P) and the mentioned file does not exist.
I searched with “find” the filesystem but I could not identify a file in which I should put the option.
Further I found the BasicUI configuration a possibility to define country and language but that has no effect on the transformation.
I have no experience with a QNAP NAS, but I did some searching and found the following topic.
The interesting part is this:
So apparently there is a openHAB-wrapper.conf file. In this file you should be able to add the -Duser.country=DE and -Duser.language=de settings similar to how @Pezza added the gnu.io.rxtx.SerialPorts setting.
The downside of this method is that this most likely needs to be done after every update of openHAB.
You could of course open an issue in the openhab-qnap-qpkg issue tracker so that hopefully a solution similar to the /etc/default/openhab file on Linux can be created.
Thanks for the hint, but the thread is talking about OH2 and I run OH1.8.2 where the mentioned mapping file does not exist.
So I need to search further for a solution to change the DateTime conversion.
Assuming that you have read this topic and understand to what part of openHAB this applies (this does not automagically translate openHAB to Danish), try:
but now I’m having trouble showing my date correct date from 1. to 9. Shows like 01 - 09.
So today’s date is shown like 02. December.
So when I use the say command in a rule it tells me the date like, today it is the zero 2nd December
Is there a way to remove this 0 from from 1.-9,
It looks like it’s generally everywhere in openhab it’s changed to two digit numbers in the date
This is my output in the log
2018-12-02 23:46:32.011 [INFO ] [rthome.model.script.Godmorgen hilsen] - SayText: Godmorgen allesammen Klokken er 23:46 og idag er det søndag den 02. december Temperaturen udenfor er lige nu 7,1 Grader
I’m using this say command on my sonos speaker, I dont think it is the same codes i’m using.
This is my say command:
SayText2="Klokken er " + Ntp.state.format("%1$tR") + " og idag er det " + Ntp.state.format("%1$tA") + " den " + Ntp.state.format("%1$td") + ". " + Ntp.state.format("%1$tB")
and this is my date
Ntp.state.format("%1$td")
And this is the state on my Ntp DateTime item:
2018-12-03 19:10:11.089 [vent.ItemStateChangedEvent] - Ntp changed from 2018-12-03T19:09:11.054+0100 to 2018-12-03T19:10:11.063+0100