Commit 0a5553c
fix: emit full 6-digit microseconds in ISO8601 datetimes
_format_datetime_iso8601 rstripped trailing zeros from the fractional
part, so ``.100000`` became ``.1`` — ambiguous between 0.1 s and
100000 µs for lenient parsers and not equal to Python's
``datetime.isoformat(" ")`` output.
Emit full 6 digits so the wire format is unambiguous and round-trips
byte-for-byte through ``datetime.fromisoformat``. Space separator is
preserved to stay compatible with Go's time layout.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent dbf1ea5 commit 0a5553c
2 files changed
Lines changed: 27 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
208 | 217 | | |
209 | 218 | | |
210 | | - | |
| 219 | + | |
211 | 220 | | |
212 | 221 | | |
213 | 222 | | |
| |||
216 | 225 | | |
217 | 226 | | |
218 | 227 | | |
219 | | - | |
| 228 | + | |
| 229 | + | |
220 | 230 | | |
221 | 231 | | |
222 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
721 | 720 | | |
722 | 721 | | |
723 | 722 | | |
724 | | - | |
725 | | - | |
| 723 | + | |
726 | 724 | | |
727 | | - | |
728 | 725 | | |
729 | 726 | | |
730 | 727 | | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
740 | 737 | | |
741 | 738 | | |
742 | 739 | | |
| |||
0 commit comments