openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601 and BL602
https://openbekeniot.github.io/webapp/devicesList.html
1.33k stars 227 forks source link

Local Time gets crazy on BL602 #1080

Open Flobul opened 4 months ago

Flobul commented 4 months ago

Describe the bug Local Time on web page gets crazy after seconds. On boot, when NTP is synced, time is correct:

Capture d’écran 2024-02-12 à 17 11 16

But seconds later:

Capture d’écran 2024-02-12 à 17 10 42

Seconds and minutes increment correctly though time after time.

Firmware:

To Reproduce Steps to reproduce the behavior:

  1. Boot this BL602 device and wait a few seconds.

Additional NTP log on boot:

Info:NTP:Seconds since Jan 1 1900 = 3916743508
Info:NTP:Unix time  : 1707758308
Info:NTP:Local Time : 2024/02/12 17:18:28

and some times after:

Info:NTP:Seconds since Jan 1 1900 = 3916785762
Info:NTP:Unix time  : 1707800562
Info:NTP:Local Time : 4313738/07/04 01:50:42
giedriuslt commented 3 months ago

It seems SSDP driver is corrupting something somehow. If I don't start that it works. After starting ssdp it becomes garbage. Interesting to note that unix time remains correct.

giedriuslt commented 3 months ago

Made a fix for this here #1145

Flobul commented 3 months ago

Fixes for my devices. Thanks.