Replace hand-rolled date format with isoformat().

Fixes #47.
This commit is contained in:
Ryan Stutsman
2022-08-22 16:45:46 -04:00
committed by James Woglom
parent dfc39d61bb
commit f47421e482
+1 -1
View File
@@ -11,7 +11,7 @@ from .api.common import ApiException
from .parser.nightscout import ENTERED_BY
def format_datetime(date):
return arrow.get(date).strftime('%Y-%m-%d %H:%M:%S')
return arrow.get(date).isoformat()
def time_range(field_name, start_time, end_time):
arg = ''