Skip to content

Commit

Permalink
UTC vs local time.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcraciunoiu committed May 12, 2016
1 parent de1c1f2 commit 5fb04a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cc_dynamodb3/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def _dynamodb_to_model(self, row):
(fields.DateTimeType,
fields.DateType)):
if dynamodb_value:
dict_row[field_name] = datetime.datetime.fromtimestamp(
dict_row[field_name] = datetime.datetime.utcfromtimestamp(
float(dynamodb_value)
) # TODO: test for this
else:
Expand Down

0 comments on commit 5fb04a7

Please sign in to comment.