diff options
-rw-r--r-- | clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,7 +41,7 @@ void clock(void) i = time.month;
if( i == 2 && (time.year & 3) == 0 ) // leap year
i = 0;
- if( LPM(MDAYS+1) == time.day ){
+ if( LPM(MDAYS+i) < time.day ){
time.day = 1;
time.month++;
if( time.month == 13 ){
|