fix time conversion bug
@@ -26,5 +26,5 @@ except AttributeError:
def ns_to_iso_str(nanoseconds):
"""Get an ISO 8601 string from time_ns value."""
- ts = datetime.datetime.fromtimestamp(nanoseconds / 1e9)
+ ts = datetime.datetime.utcfromtimestamp(nanoseconds / 1e9)
return ts.strftime("%Y-%m-%dT%H:%M:%S.%fZ")
