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.
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.