TIL that YAML has native datetime types - but only in a certain form, otherwise they turn into strings (😠)
This causes a TypeError: Parser must be a string or character stream, not date
I worked around this in my repo by just making all the dates be strings and parsing them back into dates with the parse option, but it would be better to have the parser handle this ok.
YAML strikes again!
I mostly had frontmatter like
but one post had
TIL that YAML has native datetime types - but only in a certain form, otherwise they turn into strings (😠)
This causes a
TypeError: Parser must be a string or character stream, not date
I worked around this in my repo by just making all the dates be strings and parsing them back into dates with the parse option, but it would be better to have the parser handle this ok.