Skip to content

Commit 45fffed

Browse files
committed
datetime: Replace '"%c" % char' with '"%s" % char'.
MicroPython may have issues with unicode chars.
1 parent fe2b6d4 commit 45fffed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datetime/datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ def isoformat(self, sep='T'):
15521552
Optional argument sep specifies the separator between date and
15531553
time, default 'T'.
15541554
"""
1555-
s = ("%04d-%02d-%02d%c" % (self._year, self._month, self._day,
1555+
s = ("%04d-%02d-%02d%s" % (self._year, self._month, self._day,
15561556
sep) +
15571557
_format_time(self._hour, self._minute, self._second,
15581558
self._microsecond))

0 commit comments

Comments
 (0)