mirror of
https://github.com/RasppleII/a2server.git
synced 2024-12-22 17:29:34 +00:00
fixed bug in entering 30-day month dates in clock.patch
This commit is contained in:
parent
9ba5258fe0
commit
750b9998df
@ -100,7 +100,7 @@ while True: # 999 REM get the user's input
|
|||||||
if (mo == 4 or # 1162 IF (MO = 4 OR MO = 6 OR MO = 9 OR MO = 11) AND DA > 30 THEN 1050
|
if (mo == 4 or # 1162 IF (MO = 4 OR MO = 6 OR MO = 9 OR MO = 11) AND DA > 30 THEN 1050
|
||||||
mo == 6 or
|
mo == 6 or
|
||||||
mo == 9 or
|
mo == 9 or
|
||||||
mo == 11): x = -1; continue
|
mo == 11) and da > 30: x = -1; continue
|
||||||
# 1170 REM Convert year string into numeric value
|
# 1170 REM Convert year string into numeric value
|
||||||
yr = int(day) # 1180 YR = VAL (DAY$)
|
yr = int(day) # 1180 YR = VAL (DAY$)
|
||||||
if yr < 0 or yr > 99: x = -1; continue # 1190 IF YR < 0 OR YR > 99 THEN 1050: REM Only allow 0-99
|
if yr < 0 or yr > 99: x = -1; continue # 1190 IF YR < 0 OR YR > 99 THEN 1050: REM Only allow 0-99
|
||||||
|
Loading…
Reference in New Issue
Block a user