Forum:UTC Timer

Is it possible to change this code

var refreshDate; function addDate { var UTCDate = ((new Date).toUTCString).replace("GMT", "(UTC)"); $('#showdate').empty.append(' ' + UTCDate.substring(5) + ' '); window.clearTimeout(refreshDate); refreshDate = window.setTimeout(addDate, 1000); } $(document).ready(function {   if (skin == 'oasis')         $(' ').appendTo('#GlobalNavigation');    else        $('#p-personal ul').prepend(' ');    addDate;    refreshDate = window.setTimeout(addDate, 1000);    $('#displayTimer').css({'font-size': "12px"}); });

to not have the (UTC) at the end? Thanks, --


 * Change this line: var UTCDate = ((new Date).toUTCString).replace("GMT", "(UTC)");
 * To this: var UTCDate = ((new Date).toUTCString).replace("GMT", " "); Gracey91 (talk • contribs • count) 02:37, November 8, 2011 (UTC)