Intermittent bad times reported after browser time refresh #27

Open
opened 2023-09-06 21:57:04 -05:00 by W1CDN · 2 comments
Owner

Every once in a while it shows something like this in the serial connection, but that timestamp is right and the translation is wrong.

1694055231
UTC time from browser: 2158/50/122 (3) 23:9:0
Every once in a while it shows something like this in the serial connection, but that timestamp is right and the translation is wrong. ``` 1694055231 UTC time from browser: 2158/50/122 (3) 23:9:0 ```
Author
Owner

I have added this as part of #24. Maybe it will let me know if something goes weird again. It could also be a bad solder connection; I still don't have this board in a case yet.

// Might work to fix random errors? If date is far in the future,
      // try to update again.
      while(rtc.now().year() > 2100){
        Serial.println("RTC can't set time. Trying again.");
        rtc.adjust(DateTime(yourInputTime));
      }
I have added this as part of #24. Maybe it will let me know if something goes weird again. It could also be a bad solder connection; I still don't have this board in a case yet. ``` // Might work to fix random errors? If date is far in the future, // try to update again. while(rtc.now().year() > 2100){ Serial.println("RTC can't set time. Trying again."); rtc.adjust(DateTime(yourInputTime)); } ```
W1CDN changed title from Intermittent bad times reported to Intermittent bad times reported after browser time refresh 2023-10-01 11:34:52 -05:00
Author
Owner

I suspect this is somehow related to not waiting to call RTC, or something like that, after updating time. Or some other weirdness. See notes on #50 and how time is being kept now.

I suspect this is somehow related to not waiting to call RTC, or something like that, after updating time. Or some other weirdness. See notes on #50 and how time is being kept now.
W1CDN added the
bug
label 2023-11-02 20:53:09 -05:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: W1CDN/vulpes#27
No description provided.