Accept datetime objects as cs_release_date and cs_due_date #88

Open
opened 2025-09-21 17:17:19 +00:00 by hz · 0 comments
Owner

Some classes (e.g., 6.101) use datetime objects to calculate release/due dates. In those cases, it would be nice to be able to use that object directly instead of needing to convert to a string first.

Or, at the very least, we should have a function to convert from a datetime object to the kind of string that cs_release_date and cs_due_date expect (formatted like d.strftime("%Y-%m-%d:%H:%M")).

Some classes (e.g., 6.101) use `datetime` objects to calculate release/due dates. In those cases, it would be nice to be able to use that object directly instead of needing to convert to a string first. Or, at the very least, we should have a function to convert from a `datetime` object to the kind of string that `cs_release_date` and `cs_due_date` expect (formatted like `d.strftime("%Y-%m-%d:%H:%M")`).
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
catsoop/catsoop#88
No description provided.