Jump to content
Sign in to follow this  
bmueller

Get timezone from position

Recommended Posts

bmueller

Hi there,

i need a possibility to get the time zone of the computer's position (not the timezone, which is set in windows). Anyone has an idea how to solve this?

Thank you very much in advance.

Share this post


Link to post
Share on other sites
FlyinRiz

Hi there,

i need a possibility to get the time zone of the computer's position (not the timezone, which is set in windows). Anyone has an idea how to solve this?

Thank you very much in advance.

You could try reading your location from one of the many free IP Lookup sites (i.e. http://www.ip-adress.com/) and then use a timezone lookup site (i.e. http://www.timeanddate.com/worldclock/search.html) based on the city returned from the first site. Might be a little more complicated than you were wanting to get into. This wouldn't work if you are using a VPN or Proxy connection as it would display the location based on the first public IP address, but should work fine for local connections.

Check out the IE AutoIt functions for help on reading webpages if you haven't already.

-Aaron

Share this post


Link to post
Share on other sites
Realm

There is a User Defined Function called _ComputerGetSystem() in CompInfo.au3 that will poll some systems specs including the time zone it is in :blink:


My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

Share this post


Link to post
Share on other sites
FlyinRiz

There is a User Defined Function called _ComputerGetSystem() in CompInfo.au3 that will poll some systems specs including the time zone it is in :blink:

I think the OP was trying to avoid using any timezone var in the computer in case it is set incorrectly. At least that's what I gathered.

-Aaron

Share this post


Link to post
Share on other sites
bmueller

I think the OP was trying to avoid using any timezone var in the computer in case it is set incorrectly. At least that's what I gathered.

-Aaron

Correct. I will try your idea FlyinRiz. Thank you.

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  

×