Skip to content

Conversation

@jaredcwhite
Copy link
Member

In a confusing manner, the YAML importer was interpreting a variable like date: 2025-10-25 as a Date object, whereas date: 2025-10-25 10:11:12 would be interpreted as a Time object. This resulted in resources in a collection having a mixture of Date and Time objects. Apparently some of the Active Support infrastructure loaded in under the hood was obfuscating these differences in terms of sort comparisons, but now as we migrate off of that it's revealing the gaps.

This PR normalizes resource dates so that they're always Time objects (the time of the date would be 00:00:00 aka 12:00AM). While that's a little confusing that the front matter key is date but the value is a Time object, I think it would be more confusing if we had used time in front matter (in the vernacular, people don't really think of times as having a date component).

BREAKING CHANGE: this might impact anyone who's written code dealing with Date objects specifically.

BREAKING CHANGE: this _might_ impact anyone who's written code dealing with Date objects specifically
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants