From 3ef55dfaa03b3f5be3ee3632dfc59b8f752d2dec Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Tue, 13 Mar 2012 23:29:15 +0000 Subject: Fixed #17882 (again) -- Updated the database connections' time zone when time-zone-related settings are changed in tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17709 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/postgresql_psycopg2/operations.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'django/db/backends/postgresql_psycopg2/operations.py') diff --git a/django/db/backends/postgresql_psycopg2/operations.py b/django/db/backends/postgresql_psycopg2/operations.py index 949a05c0b6..395cd92047 100644 --- a/django/db/backends/postgresql_psycopg2/operations.py +++ b/django/db/backends/postgresql_psycopg2/operations.py @@ -71,6 +71,9 @@ class DatabaseOperations(BaseDatabaseOperations): return name # Quoting once is enough. return '"%s"' % name + def set_time_zone_sql(self): + return "SET TIME ZONE %s" + def sql_flush(self, style, tables, sequences): if tables: # Perform a single SQL 'TRUNCATE x, y, z...;' statement. It allows -- cgit v1.2.1