]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- default "timezone" setting is now False. this corresponds to Python's datetime
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Jan 2007 18:51:23 +0000 (18:51 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Jan 2007 18:51:23 +0000 (18:51 +0000)
behavior as well as Postgres' timestamp/time types (which is the only timezone-sensitive
dialect at the moment) [ticket:414]

CHANGES
lib/sqlalchemy/types.py

diff --git a/CHANGES b/CHANGES
index 4b40af5182fe5622f969a20ab00a3553dcac988f..798d33fac04a4a77e2400d5f6ac63c896df12c1d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -21,6 +21,9 @@ required for firebird, not a bad idea for others [ticket:408]
 - Firebird NUMERIC type properly handles a type without precision [ticket:409]
 - fix to post_update to insure rows are updated even for non insert/delete scenarios
 [ticket:413]
+- default "timezone" setting is now False.  this corresponds to Python's datetime
+behavior as well as Postgres' timestamp/time types (which is the only timezone-sensitive
+dialect at the moment) [ticket:414]
 
 0.3.3
 - string-based FROM clauses fixed, i.e. select(..., from_obj=["sometext"])
index ad7868b9b25e0c60295ebffab010168f644fbc22..dbb9228c3cb558c14ad6b6b25524524bd77ac854 100644 (file)
@@ -221,7 +221,7 @@ class Float(Numeric):
 
 class DateTime(TypeEngine):
     """implements a type for datetime.datetime() objects"""
-    def __init__(self, timezone=True):
+    def __init__(self, timezone=False):
         self.timezone = timezone
     def adapt(self, impltype):
         return impltype(timezone=self.timezone)
@@ -235,7 +235,7 @@ class Date(TypeEngine):
 
 class Time(TypeEngine):
     """implements a type for datetime.time() objects"""
-    def __init__(self, timezone=True):
+    def __init__(self, timezone=False):
         self.timezone = timezone
     def adapt(self, impltype):
         return impltype(timezone=self.timezone)