Fix all-day end as datetime value
Co-authored-by: Vadim Stepanov <vadimkerr@gmail.com>
This commit is contained in:
parent
3e2d52ad51
commit
e103ec9152
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ class OnCallSchedule(PolymorphicModel):
|
|||
end = shift["end"] - timezone.timedelta(days=1) if all_day else shift["end"]
|
||||
if all_day and all_day_datetime:
|
||||
start = datetime.datetime.combine(start, datetime.datetime.min.time(), tzinfo=pytz.UTC)
|
||||
end = datetime.datetime.combine(start, datetime.datetime.max.time(), tzinfo=pytz.UTC)
|
||||
end = datetime.datetime.combine(end, datetime.datetime.max.time(), tzinfo=pytz.UTC)
|
||||
is_gap = shift.get("is_gap", False)
|
||||
shift_json = {
|
||||
"all_day": all_day,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue