Skip to content

Commit

Permalink
🐛 fix: timestamp conversion failure (#151)
Browse files Browse the repository at this point in the history
Co-authored-by: Nyakku Shigure <[email protected]>
  • Loading branch information
FrankHB and SigureMo authored Jun 17, 2023
1 parent a8e5254 commit 4745978
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yutto/utils/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@


class Filter:
batch_filter_start_time: datetime.datetime = datetime.datetime.min
batch_filter_end_time: datetime.datetime = datetime.datetime.max
# NOTE(FrankHB): A workaround to https://bugs.python.org/issue31212.
batch_filter_start_time: datetime.datetime = datetime.datetime(1, 1, 2)
batch_filter_end_time: datetime.datetime = datetime.datetime(9999, 12, 31)

@staticmethod
def set_timer(key: str, user_input: str):
Expand Down

0 comments on commit 4745978

Please sign in to comment.