Repository navigation
Fix malformed year in ai-metadata.json timestamps - #4230
Merged
Merged
Conversation
The last_updated and build_time layouts used 2025 where Go's reference year 2006 belongs. Go reads that 2025 as day (2), zero-padded day (02), and seconds (5), so a build at 08:59:06 on October 16 rendered "16166-10-16T08:59:06-05:00". Both now render ISO 8601 dates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Deploy Preview for ornate-narwhal-088216 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ai-metadata.jsonpublisheslast_updatedandbuild_timewith an impossible year:The layout in
layouts/index.aimetadata.jsonpasses2025-01-02T15:04:05Z07:00tonow.Format. Go's layouts need the reference year2006; Go reads2025as day (2), zero-padded day (02), and seconds (5), which produces16166for a build at 08:59:06 on October 16. This PR changes both format strings to2006-01-02T15:04:05Z07:00.No other layout in
layouts/uses a reference year other than 2006.Testing
I built
mainand this branch withhugo --gc --minifyand compared the output:2026-10-16T09:03:56-05:00and parse with Python'sdatetime.fromisoformat.ai-sitemap.json,concepts.json, andllms-full.txt, and theiamandpolicy-controllertag titles, which flip spelling between builds because content uses both spellings of each.🤖 Generated with Claude Code