Topic: Get Server Time?
How get server time for digital clock?
You are not logged in. Please login or register.
Register and vote for most wanted feature for analog flash clock in the forum.
How get server time for digital clock?
Hello,
you need to use 2 parameters:
- UTCTime: [hh:mm:ss] (sets UTC time)
- timeOffset: [-x..x] (sets timezone offset in seconds)
If you have PHP on your server i will write simple example how to set GMT+1 timezone:
var flashvars = {
UTCTime: "<?php echo gmdate('H:i:s'); ?>", // time from server
timeOffset: "3600" // timezone time shift
};
swfobject.embedSWF(
"devDigitalClock.swf",
"devDigitalClock",
"220",
"120",
"8",
"expressInstall.swf",
flashvars,
{scale: "noscale", wmode: "transparent"}
);
Btw, these parameter are available only in digital clock v1.1
Thank you so much.
But, I have a question?
I want Digital Clock show time of server, when I try to change date time in client, it still no change.
how I do?
I am sorry, i don't understand the problem ![]()
sorry. My english is very poor.
1. Server Time
2. Time change at client
3. ==> flash clock change
I don't want time of flash clock is change. ( mean: flash clock=10:07:10)
I don't know don't you understand?
Now i understand your problem.
We will try to find the solution for it next week.
yes, thanks
Sorry, vinh1508. There is no quick sollution for your problem.
We will try to deal with this situation in next widget version.
By the way why do you bother about clients clock?
Who normally changes their clock while they are on a page?
Can anyone help me to get the code for the NIST time server? I need a desktop application for this. Hope to get the solution soon.
Thanks & Regards
Ricky Johnson
Posts [ 9 ]