Skip to content

Commit

Permalink
Replace hand-rolled date format with isoformat().
Browse files Browse the repository at this point in the history
Fixes #47.
  • Loading branch information
rstutsman authored and jwoglom committed Aug 22, 2022
1 parent dfc39d6 commit f47421e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tconnectsync/nightscout.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
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 = ''
Expand Down

0 comments on commit f47421e

Please sign in to comment.