Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Don't replace timestamp w/ UTC.
'_datetime_from_microseconds' already does that.

Addresses:
#1128 (comment)
  • Loading branch information
tseaver committed Sep 11, 2015
commit 8225dd882baf6ea071aed10e9f953a06ec715fd8
4 changes: 1 addition & 3 deletions gcloud/bigquery/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import six

from gcloud._helpers import UTC
from gcloud._helpers import _datetime_from_microseconds
from gcloud._helpers import _millis_from_datetime
from gcloud.exceptions import NotFound
Expand Down Expand Up @@ -763,8 +762,7 @@ def _bool_from_json(value, field):
def _datetime_from_json(value, field):
if _not_null(value, field):
# value will be a float in seconds, to microsecond precision, in UTC.
stamp = _datetime_from_microseconds(1e6 * float(value))
return stamp.replace(tzinfo=UTC)
return _datetime_from_microseconds(1e6 * float(value))


def _record_from_json(value, field):
Expand Down