Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blog posts: parse date #787

Merged
merged 1 commit into from
Jan 4, 2023
Merged

Blog posts: parse date #787

merged 1 commit into from
Jan 4, 2023

Conversation

TheLortex
Copy link
Member

This PR adds code to parse the updated field and make sure it has the expected format (year-month-day).
The internal type becomes Ptime.t to make sure we use a valid date.

Then it's serialized to RFC 3339 when used in the atom feed, or back to year-month-day for blog posts.

Partial fix to #783
#780

@TheLortex TheLortex merged commit 2954572 into master Jan 4, 2023
@TheLortex TheLortex mentioned this pull request Jan 4, 2023
@TheLortex TheLortex deleted the parse-date branch January 4, 2023 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant