Here is a quick and dirty method of getting the server time to the clients PC and the users local time as a demo.

As you can see its pretty easy to do, this is what I was trying to get you to get a grasp of but as you never posted the PHP and HTML you were using, I whipped up this and I tested it in MY webhost and it works, it may be slightly in accurate in terms of a second or so but that in itself is not important, you get a server time stamp and a user time stamp and using JavaScript without a hint of JQuery anywhere, nor is it needed.

PHP Code:
 *    JavaScript ServerTime tracker
date_default_timezone_set("America/Anchorage"); // set to this to test the output is calculating the server time
$serverStamp date("Y-m-d H:i:s"); // write an ISO time stamp to the clients machine

// make a hash 
$hash md5("{$ip} s0m3 t3xt s@lt va7u3 {$ip}")

<!DOCTYPE html>
<title>Server Time Sync</title>
body {
server = {
    hash:"<?php echo $hash;?>",
    iso:"<?php echo $serverStamp;?>",
    time: false,
    local: false,
    visible: false,
        if(!server.time) server.time = new Date( server.iso ).getTime()
        if(!server.local) server.local = new Date().getTime();
        if(!server.visible) server.visible = document.getElementById("servertime");
        if(server.time && server.local ){
                clearInterval( );
       = setInterval(server.tick,1e3)
        server.local = new Date();
        server.localTime = server.local.toUTCString().slice(17,25);
        server.time = new Date( (server.time+=1000) ).getTime();
        server.timeString = new Date( server.time ).toUTCString().slice(17,25);
        if(server.visible) server.visible.innerHTML = "user:["+server.localTime+"] srv: ("+server.timeString+")";
    auto: setInterval("server.init()",5e2)

<div id="servertime"></div>