Skip to content

Tasks will fail when settings.USE_TZ = False #8

@ryanbagwell

Description

@ryanbagwell

By default, the Django setting USE_TZ = False. This will throw errors when running tasks because this reference to the current time is not timezone aware.

The tests pass because they're bypassing the task running command.

I'm not sure what the best way to handle this is. My thought is that we should require USE_TZ to be True for consistency, and if it's not, throw an assertion error with a clear explanatory message.

I created an additional test in order to test the runner task. It's in a branch tz-issues.

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