nostr:note1yer7kfhc7c73m34aer2374cxlepj69c644u294xwpsk3p6zj37lqj4uqw2

Reply to this note

Please Login to reply.

Discussion

I was a lazy fuck and used PHP to automate it 😂

I use JS so it's client-side only. Drop this where you want the date:

I dealt mostly with WordPress, so PHP was already there. Wouldn't that make the date displayed dependent upon the client device? I figure something like that should be based on the server so it's universally set by the owner.

Yes that's correct, it would use the browser/device time to render the date. With PHP it'll need to check server time and also could be shown as stale, if the site page caching was aggressive. The JS method is just more lightweight and works with static page and will "update" despite page caching.

To protect IP you’d need to show prior “art” so isn’t keeping the older copyright year better?

I never understood this and I truly don’t know what the answer is

Possibly, I’m not sure either. Might be why some sites do a year - year copyright notice