Pavlos1316 Posted June 9, 2009 Share Posted June 9, 2009 Hello all, I have this script for display date and time <?php $hourdiff = "2"; // hours diff btwn server and local time $melbdate = date("l, d F Y h:i:s",time() + ($hourdiff * 3600)); print ("$melbdate"); ?> but I need it to update time every second (not only when I refresh the page...) Can anyone help? Thank you Link to comment https://forums.phpfreaks.com/topic/161498-solved-date-and-time/ Share on other sites More sharing options...
otuatail Posted June 9, 2009 Share Posted June 9, 2009 This is a javascript problem, you could ask one of thouse guys in this website. Desmond. Link to comment https://forums.phpfreaks.com/topic/161498-solved-date-and-time/#findComment-852242 Share on other sites More sharing options...
Pavlos1316 Posted June 9, 2009 Author Share Posted June 9, 2009 oh... Thank you. Is been a while since my last login and it seems I can't find the javascript help forum... I thought it was kicked out. Where can I find it? Link to comment https://forums.phpfreaks.com/topic/161498-solved-date-and-time/#findComment-852244 Share on other sites More sharing options...
Pavlos1316 Posted June 9, 2009 Author Share Posted June 9, 2009 sorry... found it Link to comment https://forums.phpfreaks.com/topic/161498-solved-date-and-time/#findComment-852245 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.