Skip to content

TypeError: can't compare offset-naive and offset-aware datetimes #1513

@sentry-io

Description

@sentry-io

Sentry Issue: SIR-LANCEBOT-BV

TypeError: can't compare offset-naive and offset-aware datetimes
  File "bot/exts/utilities/emoji.py", line 111, in info_command
    **Created:** {time_since(emoji.created_at.replace(tzinfo=None), precision="hours")}
  File "bot/utils/time.py", line 79, in time_since
    delta = abs(relativedelta(now, past_datetime))

Unhandled command error: can't compare offset-naive and offset-aware datetimes

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