MediaWiki:Common.js: diferència entre les revisions

Mpuj (discussió | contribucions)
Millorar
Mpuj (discussió | contribucions)
Canciar l'hora per la nostra
Línia 623: Línia 623:
   
   
function addDate() {
function addDate() {
     var UTCDate = ((new Date()).toUTCString()).replace("GMT", "(UTC)");
     var UTCDate = ((new Date()).toString()).replace("GMT", "(UTC)");
     $('#showdate').empty().append('<span style="font-weight: bold; text-transform: none;"><a title="Purge the server cache and update the contents of this page." href="' + wgArticlePath.replace('$1', wgPageName.replace(/ /g, '_')) + '?action=purge">' + UTCDate.substring(5) + '</a></span>');
     $('#showdate').empty().append('<span style="font-weight: bold; text-transform: none;"><a title="Purge the server cache and update the contents of this page." href="' + wgArticlePath.replace('$1', wgPageName.replace(/ /g, '_')) + '?action=purge">' + UTCDate.substring(5) + '</a></span>');
     window.clearTimeout(refreshDate);
     window.clearTimeout(refreshDate);