UQComputingSociety / uqcsbot-slack

:mortar_board: UQCSbot: our friendly little Slack bot
https://slack.uqcs.org.au
MIT License
55 stars 44 forks source link

!whatsdue -f throws OSError on Windows #381

Closed katrinafyi closed 6 years ago

katrinafyi commented 6 years ago

Specifically, OSError: [Errno 22] Invalid argument in uq_course_utils.get_course_assessment:

    cutoff = cutoff or datetime.fromtimestamp(0)

It looks like the timestamp 0 is somehow invalid on Windows 10 (it works fine on the official bot). Changing it to datetime.min fixes it.