diff options
author | Christian Franke <nobody@nowhere.ws> | 2012-04-10 21:51:27 +0200 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2012-04-10 21:51:27 +0200 |
commit | 313db8238b0014df203cb3c36102928087a32af8 (patch) | |
tree | 4e4e82ae50ee26c90f852f90e8014abe4541dc6d | |
parent | 0a60a76afcf938c6885395fb16b6c168179921e5 (diff) |
fix month counting
-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 ){
|