Slight issue with date parsing in december
This commit is contained in:
parent
8af00dde94
commit
8dfc7cf043
1 changed files with 1 additions and 1 deletions
|
|
@ -609,7 +609,7 @@ def from_sophont_provided_data(data: str, user_tz: str = 'Etc/UTC') -> Either[Ex
|
|||
))
|
||||
|
||||
if year and month:
|
||||
if year_raw is not None and year_raw < 12:
|
||||
if year_raw is not None and year_raw <= 12:
|
||||
# User input something like "10/25".
|
||||
# Assume that's actually a month and a day, not a year and a month.
|
||||
cur = datetime.now(tz)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue