8000
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 99cc8ca commit ca10f5eCopy full SHA for ca10f5e
influxdb/line_protocol.py
@@ -1,9 +1,9 @@
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3
4
+from calendar import timegm
5
from copy import copy
6
from datetime import datetime
-from time import mktime
7
8
from dateutil.parser import parse
9
from pytz import utc
@@ -20,7 +20,7 @@ def _convert_timestamp(timestamp):
20
timestamp = timestamp.astimezone(utc)
21
timestamp.replace(tzinfo=None)
22
return (
23
- mktime(timestamp.timetuple()) * 1e9 +
+ timegm(timestamp.timetuple()) * 1e9 +
24
timestamp.microsecond * 1e3
25
)
26
raise ValueError(timestamp)
0 commit comments