Re: Problem with converting time

2017-03-20 Thread pink via use-livecode
My experience is that HostM's time is set to GMT when I run: put 1489755600 into tVar convert tVar into dateitems put tVar I get: 2017,3,17,13,0,0,6 - --- Greg (pink) Miller mad, pink and dangerous to code -- View this message in context:

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

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 |

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

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

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

Re: Problem with converting time

2017-03-17 Thread Mike Doub via use-livecode
-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 >   -- on

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

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

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

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 =

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

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

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.

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