0 votes
in Touch Interface by (160 points)
Hi all,

my weather station runs really well, but one last issue still remains:

The date in the first row of the display is still in US format. Is there any possibility to change it to the German format (weekday, date, month, year)?

Any help is appreciated.

Cheers,
Joerg

1 Answer

+1 vote
by (19.9k points)
selected by
by (160 points)

Hi Marcel,

thank you very much for your reply. It seems that I am running an older software version as the line that writes the date was completely different. But no big deal I just had to replace
 

String date = ctime(&now);
date = date.substring(0,11) + String(1900 + timeinfo->tm_year);

with

String date = WDAY_NAMES[timeinfo->tm_wday] + " " + String(timeinfo->tm_mday) + ". " + MONTH_NAMES[timeinfo->tm_mon] + " "  + String(1900 + timeinfo->tm_year);

and it worked like a charme :)


 

Cheers,
Joerg

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...