Gudday all
Just started the last few days looking at my wife’s site using Chrome. A few minutes ago I noticed that it was not displaying dates correctly.
In Chrome
the date comes out as ‘Last updated on / /’
In FF, IE
the date comes out as ‘Last updated on dd/ mm/yyyy’
The JS is
<script type="text/javascript">
//<![CDATA[
var now = new Date();
document.write('<p class="webmaster">');
document.write("Site design © Petals & Patches 2004 -" + now.getFullYear() + ".");
document.write('<p class="lastupdated">');
document.write("Last updated on " + document.lastModified.substring(3,5) + "/" + document.lastModified.substring(0,2)+ "/" + document.lastModified.substring(6,10) + '<\\/p>');
//]]>
Looking at my code I can see no blindingly obvious problem.
I am sure that this has been noted and solved but a search of the fora came up with nothing. (my search was probably not very good )
Any advice greatly appreciated.