diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-01-05 18:51:23 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-01-05 18:51:23 +0000 |
| commit | 1c6807b18ed5ad7cb8dae8eabcec45bdf4f7d298 (patch) | |
| tree | e323e8a7276b89034a95964e6f9c2cba76d217fb /lib | |
| parent | 4771a156a3b4ae233a8efd9b7741e09bebfe6d87 (diff) | |
| download | sqlalchemy-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]
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/types.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
