Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit d62c202

Browse files
author
Aistis Jokubauskas
committed
Fix time for 0 values
1 parent 35d3eb9 commit d62c202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/line_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def make_line(measurement, tags=None, fields=None, time=None, precision=None):
136136
if field_list:
137137
line += ' ' + ','.join(field_list)
138138

139-
if time:
139+
if time is not None:
140140
timestamp = _get_unicode(str(int(
141141
_convert_timestamp(time, precision)
142142
)))

0 commit comments

Comments
 (0)