View Full Version : dynamic time from $variable

08-24-2010, 01:18 AM
Hi I am trying to take static time from a variable "$uct" and make
it live, with counting of minutes seconds etc,

$uct = date("h:ia", time()-GetUserOffset());// displays user logged in current time

I found a lot of javascript, one in particular, but it offsets itself by
manually entering the minutes, I would like to insert my variable containing
the user offset shown above, and I guess I could leave that js setting at 0,

But instead of using the default server time I'd like to use my $variable
anyone know how I can do this by editing localtime in the code below I get
syntax errors trying,

this is what I would like to use:

<script type="text/javascript">
new showLocalTime("timecontainer", "server-php", 0, "short")

the javascript itself is located below
I don't know if I should post that whole code here


08-29-2010, 06:00 PM

08-29-2010, 06:09 PM

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum