Re: Problem with converting time

2017-03-20 Thread pink via use-livecode
e.com/Problem-with-converting-time-tp4713116p4713208.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: Problem with converting time

2017-03-19 Thread Sannyasin Brahmanathaswami via use-livecode
Hmm, this is odd if you are located in North Carolina…it means your server is off shore, out in the Atlantic, because it is running 3 hours ahead of you. but, unless HostM has now floatilla ISP data center ships, or secret bunkers on the sea floor, something is amiss. Ditto everything Richard a

Re: Problem with converting time

2017-03-17 Thread J. Landman Gay via use-livecode
On 03/17/2017 03:52 PM, Michael Doub via use-livecode wrote: getaData[x]["time"] Wherever the array is getting its time data, that's where local time is happening. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.

Re: Problem with converting time

2017-03-17 Thread Mark Wieder via use-livecode
On 03/17/2017 03:52 PM, Michael Doub via use-livecode wrote: Sorry Mark and Richard. Here is the real code snipit that includes a hack that seems to work: getaData[x]["time"] if not(theenvironmentisamongtheitems"development,standalone application") then subtract(4*60*60) fromit end if conv

Re: Problem with converting time

2017-03-17 Thread Richard Gaskin via use-livecode
Mike Doub wrote: > I am in Chapel Hill, NC. I am using Hostm and I really don't > know, I would have expected the time to be less if on the west > coast of the US. We don't yet know the location of the server, but even better you can find out what time zone it's set to by logging in via SS

Re: Problem with converting time

2017-03-17 Thread Michael Doub via use-livecode
Sorry Mark and Richard. Here is the real code snipit that includes a hack that seems to work: getaData[x]["time"] if not(theenvironmentisamongtheitems"development,standalone application") then subtract(4*60*60) fromit end if convertit todateitems Mark, in your situation, you and the ser

Re: Problem with converting time

2017-03-17 Thread Mike Doub via use-livecode
: use-livecode@lists.runrev.com Cc: ambassa...@fourthworld.com Subject: Re: Problem with converting time Michael Doub wrote: > Sorry guys, I must not have been clear in my statement of the > problem. > Here is the code: > > put 1489755600 into tVar > convert tVar into dateitems >   -

Re: Problem with converting time

2017-03-17 Thread Richard Gaskin via use-livecode
Michael Doub wrote: > Sorry guys, I must not have been clear in my statement of the > problem. > Here is the code: > > put 1489755600 into tVar > convert tVar into dateitems > -- on the mac tVar contains 2017,3,17,9,0,0,6 > -- on the server tVar contains 2017,3,17,12,0,0,6 > > The local time s

Re: Problem with converting time

2017-03-17 Thread Mark Wieder via use-livecode
On 03/17/2017 01:20 PM, Michael Doub via use-livecode wrote: Sorry guys, I must not have been clear in my statement of the problem. Here is the code: put 1489755600 into tVar convert tVar into dateitems -- on the mac tVar contains 2017,3,17,9,0,0,6 -- on the server tVar contains 2017,3,17,12,0

Re: Problem with converting time

2017-03-17 Thread Michael Doub via use-livecode
Sorry guys, I must not have been clear in my statement of the problem. Here is the code: put 1489755600 into tVar convert tVar into dateitems -- on the mac tVar contains 2017,3,17,9,0,0,6 -- on the server tVar contains 2017,3,17,12,0,0,6 The local time should not be involved since you are co

Re: Problem with converting time

2017-03-17 Thread Richard Gaskin via use-livecode
Michael Doub wrote: > time = 1489755600 > Mac: dateitems = 2017,3,17,9,0,0,6 > server: dateitems = 2017,3,17,12,0,0,6 > > Code: get time > convertit to dateitems > > Richard here is another example: > time = 1489752000 > mac:dateitems = 2017,3,17,8,0,0,6 > server: dateitems = 2017,3,

Re: Problem with converting time

2017-03-17 Thread Mark Wieder via use-livecode
On 03/17/2017 05:46 AM, Michael Doub via use-livecode wrote: time = 1489755600 Mac: dateitems = 2017,3,17,9,0,0,6 server: dateitems = 2017,3,17,12,0,0,6 Code: get time convertit to dateitems I don't understand how the local time comes into play when converting a constant number of sec

Re: Problem with converting time

2017-03-17 Thread Michael Doub via use-livecode
Richard here is another example: time = 1489752000 mac: dateitems = 2017,3,17,8,0,0,6 server: dateitems = 2017,3,17,12,0,0,6 I just wanted to double check that I was showing you good comparison since I am copying from multiple windows of debug output. -= Mike On 3/17/17 8:46 AM, Michael Do

Re: Problem with converting time

2017-03-17 Thread Michael Doub via use-livecode
time = 1489755600 Mac: dateitems = 2017,3,17,9,0,0,6 server: dateitems = 2017,3,17,12,0,0,6 Code: get time convertit to dateitems I don't understand how the local time comes into play when converting a constant number of seconds. The resulting date should be a constant as well. Wh

Re: Problem with converting time

2017-03-16 Thread Richard Gaskin via use-livecode
Michael Doub wrote: > I am getting different answers based on environment when trying to > convert EPOC seconds to dateitems or internet date. On my mac I get > the expected result but on a HostM server I get something totally > different. How different? > Does any one have a conversion funct

Problem with converting time

2017-03-16 Thread Michael Doub via use-livecode
I am getting different answers based on environment when trying to convert EPOC seconds to dateitems or internet date. On my mac I get the expected result but on a HostM server I get something totally different. Does any one have a conversion function that does not use the livecode's convert