1

Topic: Get Server Time?

How get server time for digital clock?

2

Re: Get Server Time?

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

3

Re: Get Server Time?

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?

4

Re: Get Server Time?

I am sorry, i don't understand the problem sad

5

Re: Get Server Time?

sad sorry. My english is very poor.
1. Server Time
http://i195.photobucket.com/albums/z184/vinh1508/sshot-1-2.png
2. Time change at client
http://i195.photobucket.com/albums/z184/vinh1508/sshot-2.png
3. ==> flash clock change
http://i195.photobucket.com/albums/z184/vinh1508/sshot-3.png

I don't want time of flash clock is change. ( mean: flash clock=10:07:10)

sad I don't know don't you understand?

6

Re: Get Server Time?

Now i understand your problem.
We will try to find the solution for it next week.

7

Re: Get Server Time?

yes, thanks

8

Re: Get Server Time?

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?