This commit is contained in:
Your Name
2025-01-30 12:11:52 +01:00
parent 970f62658b
commit a689a7d2de
2 changed files with 29 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ def main():
# Calculate time difference (in seconds) if RTC is connected
if rtc_time:
rtc_time_str = rtc_time.strftime('%Y-%m-%d %H:%M:%S')
time_difference = int((system_utc_time - rtc_time).total_seconds()) # Convert to int
time_difference = int((utc_time - rtc_time).total_seconds()) # Convert to int
else:
rtc_time_str = "not connected"
time_difference = "N/A" # Not applicable