Login
From:
til.codeinthehole.com
(Uncensored)
subscribe
TIL Django's JSON encoder rounds 'datetime's down to the nearest millisecond — David Winterbottom
https://til.codeinthehole.com/posts/djangos-json-encoder-rounds-datetimes-down-to-the-nearest-millisecond/
links
backlinks
Roast topics
Find topics
Find it!
Django provides a custom DjangoJSONEncoder class that can encode datetime. — can be read in 1 minute