Skip to content

Commit 8fd04d2

Browse files
committed
fix nightly KNN to consistently write date/time with 4 and 2 digits
1 parent d213ef2 commit 8fd04d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python/runNightlyKnn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def write_one_graph(f, timestamps, series, id, title, headers=None, ylabel=None)
526526
for i in range(len(timestamps)):
527527
timestamp = timestamps[i]
528528
values = [series[x][i] for x in range(len(series))]
529-
f.write(' + "%s-%s-%s %s:%s:%s' % (timestamp.year, timestamp.month, timestamp.day, timestamp.hour, timestamp.minute, timestamp.second))
529+
f.write(' + "%04d-%02d-%02d %02d:%02d:%02d' % (timestamp.year, timestamp.month, timestamp.day, timestamp.hour, timestamp.minute, timestamp.second))
530530
f.write(',%s\\n"\n' % ",".join([str(x) for x in values]))
531531

532532
f.write(f'''

0 commit comments

Comments
 (0)