Sign in to follow this  
Followers 0
jjohn

Time sync script

19 posts in this topic

I have this time sync script and my time zone is pacific standard time, just want to see if it get time correct in different time zone.

It suppose to work on win 98 or xp, if you're in zone other than mine and test out the time is incorrect, please let me know the difference and the zone(or city) you're in.

Thanks

IPClockSync_v2.au3

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

This is neat. Works fine on my comp. I'm in Canada Mountain Time Zone. :o

Edited by sheckandar

Live and Learn, 'cause Knowledge is Super Power.

Share this post


Link to post
Share on other sites

Works in the Netherlands.

Very nice, Thanks.

Dick

Share this post


Link to post
Share on other sites

Works fine for me in Denmark :geek: and it is Nice :o;)


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

I like it. Always love a solution in AutoIt that I normally have to download a third party program for. I always used one from http://www.worldtimeservers.com/. I have been interested in creating something similiar in AutoIt. You have done it. It works great.

I am in the US CST (Central Time Zone -6).

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

In Italy it doesn't work: I get -1h

Share this post


Link to post
Share on other sites

In Italy it doesn't work: I get -1h

Please check when you click open your clock at the bottom right corner...

Do you see such line

"(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"

about Time Zone?

If no, then you have to set it right, otherwise your OS will treat you as not in Italy and this script will give you time of another place.

I guess you might be using Win98, please try another version, it is also for the mobile people who need to change time zone frequently, the major difference is just line 13 of the script, hope this one will work right for you.

IPClockSync_v2m.au3

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Nice script :o

I am in EST zone (-5) and it works great!

[edit]

I guess to be really accurate you would need to run 2 updates, silently timing the first one to calculate round trip lag time and adding that value to the time returned on the second trip.

[/edit]

Edited by billmez

Share this post


Link to post
Share on other sites

Nice script :o

I am in EST zone (-5) and it works great!

[edit]

I guess to be really accurate you would need to run 2 updates, silently timing the first one to calculate round trip lag time and adding that value to the time returned on the second trip.

[/edit]

Thanks for your test result and great suggestion.

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Please check when you click open your clock at the bottom right corner...

Do you see such line

"(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"

about Time Zone?

If no, then you have to set it right, otherwise your OS will treat you as not in Italy and this script will give you time of another place.

I guess you might be using Win98, please try another version, it is also for the mobile people who need to change time zone frequently, the major difference is just line 13 of the script, hope this one will work right for you.

IPClockSync_v2m.au3

I tried both scripts but I get the same error like masvil (-1h) even if the time zone settings are correct for my location (Berlin).

regards

Finrod Narmolanya

@jjohn

It seems that Westi ist right, it seems to be a language problem. I tried your tool on a mui Version (english with the german interface) and there ist no problem even if the region zone ist the same.

i attached the Results from both systems.

regards

Finrod Narmolanya

1234.txt

Edited by Finrod Narmolanya

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Do you see such line

"(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"

about Time Zone?

Yes, I do.

I guess you might be using Win98,

XP updated

hope this one will work right for you.

Same problem, it gives Greenwich time instead of Greenwich + 1. Or maybe I can't understand the way it (should have to) work.

EDITED: Finrod Narmolanya, you make me feel not alone :o

Edited by masvil

Share this post


Link to post
Share on other sites

Thanks for your test result and great suggestion.

Actually, I believe the time servers respond to a ping so you can probably ping the server first and parse the round trip time out of the return.

This is a very handy little utility

Share this post


Link to post
Share on other sites

Yes, I do.

XP updated

Same problem, it gives Greenwich time instead of Greenwich + 1. Or maybe I can't understand the way it (should have to) work.

EDITED: Finrod Narmolanya, you make me feel not alone :o

Sorry to say, but I am also in time zone "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna" and for me it works fine.

Share this post


Link to post
Share on other sites

Sorry to say, but I am also in time zone "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna" and for me it works fine.

Everything works for you :-P... hahha

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

Actually, I believe the time servers respond to a ping so you can probably ping the server first and parse the round trip time out of the return.

This is a very handy little utility

FYI, I done this script according to the spec/model stated here...

RFC - 868 Time protocol

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

This is language specific:

First regread: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\

Result: W. Europe Standard Time

Second regread: HKLM\SYSTEM\ControlSet001\Control\TimeZoneInformation\StandardName

Result: (The translated text from above)

Fix:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation]
"StandardName"="W. Europe Standard Time"

Now it should work... :o

Edited by Westi

Share this post


Link to post
Share on other sites

works fine, atlantic time

thanks

Share this post


Link to post
Share on other sites

I tried both scripts but I get the same error like masvil (-1h) even if the time zone settings are correct for my location (Berlin).

regards

Finrod Narmolanya

This script is to gether the time zone info and OS info on running Win98 pc, if you have hour difference problem with current versions of IPClock Sync, please use it to make report (1234.txt) in script folder, include it in your post as attachment, I will look into it ASAP, thanks very much.

OSnRegInfo.au3

Share this post


Link to post
Share on other sites

Yes, I do.

XP updated

Same problem, it gives Greenwich time instead of Greenwich + 1. Or maybe I can't understand the way it (should have to) work.

EDITED: Finrod Narmolanya, you make me feel not alone :o

This script is to gather the time zone info and OS info on running WinXp pc, if you have hour difference problem with current versions of IPClock Sync, please use it to make report (4321.txt) in script folder, include it in your post as attachment, I will look into it ASAP, thanks very much.

OSnRegInfoXp.au3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0