Irrelevan, nitpicking and off-topic but ... this being 2019, why are you still using document.write? Shouldn't you be changing the innerHTML of an internal SPAN or something like that?
Well, if it is done client side, shouldn'n the source be pascal? And the js be generated by Pas2Js?
Anyway done it server side. It may take a while till it gets uploaded. Worst case, it goes online with the next release.
The coment was about te OP addition, which is embedded in the webpage. So JS all the way
The thing is
document.write() has been ... hmmm .. deprecated? not recommended? frowned upon? from quite a lot of time now (as in "since ten or more years ago").
The "new" way of doing it is something like:
<p class='foot_left small'>© 1993-
<span id="lmyear">2018
</span> Lazarus and Free Pascal Team
</p> <script tpye="text/javascript"> with (document) {
lmd = new Date(lastModified);
getElementById("lmyear").innerHTML = lmd.getFullYear();
But I'm not a JS expert (just a dabbler, in fact) so I may well be wrong. And as I said off-topic, both for the thread and the forum.
ETA: And I just noticed that code may not be appropriate for a copr. notice. I use it to add a "Last modified on " to static pages but the copr. should be fixed and the same for all pages.