Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92353c0 commit 2ab7b9dCopy full SHA for 2ab7b9d
opentelemetry-sdk/src/opentelemetry/sdk/util.py
@@ -26,5 +26,5 @@ def time_ns():
26
27
def ns_to_iso_str(nanoseconds):
28
"""Get an ISO 8601 string from time_ns value."""
29
- ts = datetime.datetime.fromtimestamp(nanoseconds / 1e9)
+ ts = datetime.datetime.utcfromtimestamp(nanoseconds / 1e9)
30
return ts.strftime("%Y-%m-%dT%H:%M:%S.%fZ")
0 commit comments