Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2bd4fcb136 | ||
|
|
2a91274d7f | ||
|
|
4fb4927fb8 |
@@ -28,7 +28,7 @@ def get_datetime(day: str) -> datetime:
|
||||
day = int(day.split("/")[1])
|
||||
|
||||
# ensure that year rolls over if current month is December and the next month is less than 12.
|
||||
if datetime.today().month == 12 & month < 12:
|
||||
if datetime.today().month == 12 and month < 12:
|
||||
year += 1
|
||||
|
||||
return datetime(year, month, day)
|
||||
|
||||
Reference in New Issue
Block a user