Skip to content

Fix malformed year in ai-metadata.json timestamps - #4230

Merged
matthewhelmke merged 1 commit into
mainfrom
fix-ai-metadata-year
Oct 16, 2026
Merged

matthewhelmke merged 1 commit into
mainfrom
fix-ai-metadata-year

Conversation

@matthewhelmke

Copy link
Copy Markdown
Collaborator

Summary

ai-metadata.json publishes last_updated and build_time with an impossible year:

"last_updated":"16166-10-16T08:59:06-05:00"

The layout in layouts/index.aimetadata.json passes 2025-01-02T15:04:05Z07:00 to now.Format. Go's layouts need the reference year 2006; Go reads 2025 as day (2), zero-padded day (02), and seconds (5), which produces 16166 for a build at 08:59:06 on October 16. This PR changes both format strings to 2006-01-02T15:04:05Z07:00.

No other layout in layouts/ uses a reference year other than 2006.

Testing

I built main and this branch with hugo --gc --minify and compared the output:

  • Both fields now render 2026-10-16T09:03:56-05:00 and parse with Python's datetime.fromisoformat.
  • No other output changed except build noise: generation timestamps in ai-sitemap.json, concepts.json, and llms-full.txt, and the iam and policy-controller tag titles, which flip spelling between builds because content uses both spellings of each.

🤖 Generated with Claude Code

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>
@matthewhelmke
matthewhelmke requested a review from a team as a code owner October 16, 2026 14:05
@netlify

netlify Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ornate-narwhal-088216 ready!

Name Link
🔨 Latest commit 6fcde98
🔍 Latest deploy log https://app.netlify.com/projects/ornate-narwhal-088216/deploys/6ad22f2f57ca3e7eacf8d0f4
😎 Deploy Preview https://deploy-preview-4230--ornate-narwhal-088216.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
chainguard-docs-preview Ready Ready Preview Oct 16, 2026 2:05pm UTC

Request Review

@matthewhelmke
matthewhelmke merged commit 0903705 into main Oct 16, 2026
15 checks passed
@matthewhelmke
matthewhelmke deleted the fix-ai-metadata-year branch October 16, 2026 14:10

This branch was successfully deployed

1 active deployment
Preview — 6fcde982 Deployed Oct 16, 2026 by vercel[bot]
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