Slight issue with date parsing in december

This commit is contained in:
digimint 2025-11-21 17:17:52 -06:00
parent 8af00dde94
commit 8dfc7cf043
Signed by: digimint
GPG key ID: 8DF1C6FD85ABF748

View file

@ -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)