#17062: Using postgres, if you rollback the first transaction on a connection, the effect of settings.TIME_ZONE is lost -------------------------------------+------------------------------------- Reporter: mwhudson | Owner: nobody Type: Bug | Status: new Component: Database layer | Version: 1.3 (models, ORM) | Resolution: Severity: Normal | Triage Stage: Accepted Keywords: | Needs documentation: 0 Has patch: 1 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 0 | -------------------------------------+------------------------------------- Changes (by akaariai):
* has_patch: 0 => 1 Comment: Attached my attempt at fixing this issue. The fix I used is some code restructuring in postgresql_psycopg2.`DatabaseWrapper`. I am running the SET TIME ZONE in autocommit mode and setting the real requested isolation level only after that. connection_created is send only after the SET TIME ZONE is ran. There is a test demonstrating the problem. It might be a little ugly, though... -- Ticket URL: <https://code.djangoproject.com/ticket/17062#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.