My date is backwards

Today instead of Hubitat announcing the date as the 1st of June, it is announcing it as the 6th of January I'm using the textToSpeech(string) function within VLCThing passing in the %date% as part of the string from a Rule Machine App.

textToSpeech("Door has been closed at 07:00 AM on 06/01/2019")

announces January 6 2019.

Sounds as though VLCThing or VLC is set to use British date format

Thank you Rob, you helped me figure it out. If you use Emma, or presumably any of the other British English speakers, they will assume that %date% is formatted by UK standard. Kendra and the other US English speakers assume that %date% is formatted by US standard.

As for the other parts of the system, From what I can tell, VLC just plays whatever mp3 file is sent to it. It does not do the TTS. VLCThing calls the textToSpeech() function provided by Hubitat. Hubitat seems to use Amazon to create the audio file from the text.

So the question is, can users change the date format for %date% ?

2 Likes

You mean the rest of the world format :rofl: month day year is just plain wrong :joy:

5 Likes

What do you mean? Month-day-year matches perfectly with inches and feet, quarts and gallons, and Fahrenheit. :wink:

But 06/01/2019 IS the 6th of Jan. :wink: :smile:

1 Like