Hacker News new | ask | show | jobs
by jallen_dot_dev 1062 days ago
Is it even correct to automatically update the year? Shouldn't the year be whenever the work was created or revised? Which could be set at build time.

Another advantage of setting it in the build is it'd show even without javascript. If I disable JS, no copyright statement at all appears on the page. So if it was really necessary to declare your copyright, then would it mean anyone who disables JS can freely infringe?

I agree just leaving the copyright out of the footer would be best.

2 comments

I am of the opinion that what you are suggesting is correct. You don’t want a programmatic copyright because you want the copyright to reflect the date created as that when the right begins, and it continues from there without need for refreshing.
I think it's also incorrect because it's getting the date client side. so it would just display the local client's year, not necessarily the correct one.