From: Mike Bayer Date: Fri, 5 Jan 2007 18:51:23 +0000 (+0000) Subject: - default "timezone" setting is now False. this corresponds to Python's datetime X-Git-Tag: rel_0_3_4~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c6807b18ed5ad7cb8dae8eabcec45bdf4f7d298;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - 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] --- diff --git a/CHANGES b/CHANGES index 4b40af5182..798d33fac0 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 ad7868b9b2..dbb9228c3c 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)