Closed
Description
In examples/ds1307_simpletest.py, the list of strings used to expand the integer time.struct_time.tm_wday
value appears to defined using the C convention (Sunday=0), rather than the Python convention (Monday=0); see https://docs.python.org/3/library/time.html#time.struct_time
A quick search reveals this error in several other repos:
- https://github.com/adafruit/Adafruit_CircuitPython_PCF8563/blob/main/examples/pcf8563_simpletest.py#L24
- https://github.com/adafruit/Adafruit_CircuitPython_PCF8523/blob/main/examples/pcf8523_simpletest.py#L17
- https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Pulse_Oximeter_Logger/code.py#L46
- https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/blahaj/code.py#L22
- https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Disconnected_CO2_Data_Logger/code.py#L23
- https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Pulse_Oximeter_Logger/code.py#L46
- https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Daily_Cheer_Automaton/CircuitPython/code.py#L121
- https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/MagTag_Google_Sheets/weekly_planner/code.py#L25
- perhaps others?
Metadata
Metadata
Assignees
Labels
No labels