Edzelf / ESP32-Radio

Internet radio based on ESP32, VS1053 and a TFT screen.
GNU General Public License v3.0
965 stars 227 forks source link

Bad month for LCD2004. #392

Open hevet opened 3 years ago

hevet commented 3 years ago

The wrong date is showing on the LCD2004, it is one month earlier. If today is 17/10, it displays 17/09. In the LCD2004.h file, change this solution in line 475 of the code: timeinfo.tm_mon to timeinfo.tm_mon + 1.

h1aji commented 3 years ago

I found same issue here: https://github.com/Edzelf/ESP32-Radio/issues/382

Edzelf commented 3 years ago

Fixed.

hevet commented 3 years ago

Fixed.

By mistake you subtracted another month instead of adding :)

Edzelf commented 3 years ago

Yes. Will be fixed too....

hevet commented 3 years ago

There is one more problem. When we listen to the radio at midnight, the date and day of the week will not change. Only restarting the radio will refresh the day of the week and date. I don't know how it is on other displays.

Edzelf commented 3 years ago

Yes, the day is only updated once in 7200 seconds by connecting to an NTP server. It was never my intention to display the date on a display (what's the point?), but this part was added by a user who wants to use the LCD2004 and display the date. The preferred display is a 128x160 SPI display.

hevet commented 3 years ago

OK I understand.