Internet Date Question

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
xclntdesign
Posts: 34
Joined: Sun Feb 06, 2011 8:33 pm

Internet Date Question

Post by xclntdesign » Wed Jan 02, 2013 8:51 pm

How is the time zone figured when using "internet date"?

I have manually changed the timezone on my Mac from Eastern to Pacific, and the change is not reflected in the internet date, so it must be something else. I can't imagine it actually pings a site on the web because it would require a persistent internet connection, and the documentation for the date function says nothing about that.

The reason I'm asking is because I'm trying to do some time manipulation with existing data. It is converted from seconds to a date and saved on my server, but when people in other time zones (I am in Eastern) view the date, it's always off (by 3 hours in the Pacific example). I know the correct way would be to store the seconds, and have Livecode do the manipulation, but I wanted to see if there was a way I can do it without totally destroying the data I already have stored.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Internet Date Question

Post by Simon » Thu Jan 03, 2013 12:49 am

I did the same test as you and found that only by shutting down LC and restarting the time did change.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Internet Date Question

Post by Simon » Thu Jan 03, 2013 2:49 am

Wait... Where you asking if you should go on an Internet Date? :lol:
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Internet Date Question

Post by Klaus » Thu Jan 03, 2013 3:04 pm

:D :D :D

xclntdesign
Posts: 34
Joined: Sun Feb 06, 2011 8:33 pm

Re: Internet Date Question

Post by xclntdesign » Thu Jan 03, 2013 3:15 pm

Here I am looking for something complicated with Terminal and everything, and its simple as restart.

Thank you very much!

Post Reply