mirror of
https://github.com/avgupta456/github-trends.git
synced 2025-06-04 02:20:12 +00:00
fix: current year in footer #79
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Devansh-Baghel on 1/10/2024
Problem
Current year in the footer was hardcoded to 2023 through a
CURR_YEAR
constant, which meant it would only update when someone updated that constant every year.Changes Made
new Date().getFullYear()
to replace the hardcoded year in the footer.Initially i wanted to change the
CURR_YEAR
constant itself tonew Date().getFullYear()
but i didn't end up doing that as that may break some functionality insrc/pages/Wrapped/Wrapped.js
Screenshots
Before
After