Skip to content

fix: compute footer copyright year per render - #1049

Merged
bryceerobertson merged 1 commit into
masterfrom
fix-footer-year
Sep 15, 2026
Merged

bryceerobertson merged 1 commit into
masterfrom
fix-footer-year

Conversation

@bryceerobertson

@bryceerobertson bryceerobertson commented Sep 15, 2026

Copy link
Copy Markdown
Member

Summary

The live site footer reads "© AISafety.info, 2022—1970".

The year was calculated at module top level in app/components/Footer/index.tsx. In Cloudflare Workers the clock reads 0 (epoch) during module initialization, so the year was frozen at 1970 for the life of the worker.

This moves the calculation inside the FooterBar component so it runs on each render.

Test plan

  • npx prettier --check on the file
  • npx eslint on the file
  • npx tsc --noEmit
  • After deploy, confirm the footer on https://aisafety.info/ shows the current year

🤖 Generated with Claude Code

In Cloudflare Workers the clock reads 0 (epoch) during module
initialization, so computing the year at module top level froze it at
1970 for the life of the worker. The live footer read
"© AISafety.info, 2022—1970". Move the calculation inside the Footer
component so it runs on each render.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@bryceerobertson
bryceerobertson merged commit 87fd4a3 into master Sep 15, 2026
1 check passed
@bryceerobertson
bryceerobertson deleted the fix-footer-year branch September 15, 2026 21:44
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