summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-01-05 18:51:23 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-01-05 18:51:23 +0000
commit1c6807b18ed5ad7cb8dae8eabcec45bdf4f7d298 (patch)
treee323e8a7276b89034a95964e6f9c2cba76d217fb
parent4771a156a3b4ae233a8efd9b7741e09bebfe6d87 (diff)
downloadsqlalchemy-1c6807b18ed5ad7cb8dae8eabcec45bdf4f7d298.tar.gz
- 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]
-rw-r--r--CHANGES3
-rw-r--r--lib/sqlalchemy/types.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index 4b40af518..798d33fac 100644
--- 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"])
diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py
index ad7868b9b..dbb9228c3 100644
--- a/lib/sqlalchemy/types.py
+++ b/lib/sqlalchemy/types.py
@@ -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)