Skip to content

Using date in start_date breaks #1142

@criccomini

Description

@criccomini

Using date.today() in start_date breaks. This code:

def json_ser(obj):
    """
    json serializer that deals with dates
    usage: json.dumps(object, default=utils.json_ser)
    """
    if isinstance(obj, (datetime, date)):
        return obj.isoformat()

Causes a Circular reference detected error to be thrown. Switching to datetime.now().replace(hour=0, minute=0, second=0, microsecond=0) makes this error go away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions