summaryrefslogtreecommitdiff
path: root/msgpack
diff options
context:
space:
mode:
Diffstat (limited to 'msgpack')
-rw-r--r--msgpack/fallback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/fallback.py b/msgpack/fallback.py
index 1e0bbe9..9739d53 100644
--- a/msgpack/fallback.py
+++ b/msgpack/fallback.py
@@ -921,7 +921,7 @@ class Packer(object):
len(obj), dict_iteritems(obj), nest_limit - 1
)
- if self._datetime and check(obj, _DateTime):
+ if self._datetime and check(obj, _DateTime) and obj.tzinfo is not None:
obj = Timestamp.from_datetime(obj)
default_used = 1
continue