rpi.rtc icon indicating copy to clipboard operation
rpi.rtc copied to clipboard

month must be in 1..12?

Open stall7 opened this issue 8 years ago • 3 comments

>>> rtc.read_datetime() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.4/dist-packages/pyRPiRTC-0.0.2-py3.4.egg/pyRPiRTC.py", line 151, in read_datetime ValueError: month must be in 1..12

what's problem in thie error?

stall7 avatar Jul 27 '17 02:07 stall7

same here... Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.4/dist-packages/pyRPiRTC-0.0.2-py3.4.egg/pyRPiRTC.py", line 151, in read_datetime ValueError: month must be in 1..12

sqasm avatar Mar 25 '18 19:03 sqasm

Hi,

I have the same issue when i launch "ds1302_get_utc" without RTC clock connect to Pi.

It's probably a wiring issue or a problem with the RTC chip.

I will try to reproduce this bug with a Pi3 and another ds1302.

Have a nice day.

sourceperl avatar Mar 26 '18 09:03 sourceperl

I check with a new Pi 3 B+ and 2 ds1302, all seem ok.

I add an explicit error message instead of the default Python ValueError except in commit 1972cf8.

sourceperl avatar Mar 27 '18 09:03 sourceperl