Did you hard code the year in your footer? New year, new problems.
With this one-liner, you can dynamically set the year with JavaScript:
let year = new Date().getFullYear();
If you are using VueJS or NuxtJS, you can add the current year code directly into your template section
<template>
<footer>
Copyright © {{ new Date().getFullYear() }}
</footer>
</template>
You can find more useful dev articles on my site, frostbutter.com/articles
Top comments (0)