Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
Simon
- VIP Livecode Opensource Backer

- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
Post
by Simon » Tue Jan 29, 2008 11:52 pm
Hi,
I'm getting different answers form my Swiss contacts as to the date that gets reported.
Using the above code the Swiss are showing up a day behind, they've check their clock settings and everything seems OK.
What would cause converting their seconds back to long date here (USA) to show they were testing a day before?
Thanks,
Simon
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Mon Feb 11, 2008 6:22 pm
Simon,
You have probably run into a Rev bug.
Which version are you using?
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
Simon
- VIP Livecode Opensource Backer

- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
Post
by Simon » Mon Feb 11, 2008 6:40 pm
Hi Mark,
I'm using Rev Studio rev 2.8.1.
Really a bug??
Thanks,
Simon
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Mon Feb 11, 2008 7:31 pm
Hi Simon,
It might be a bug. How exactly did you check the difference in time?
Does anything in this list look familiar to you?
http://quality.runrev.com/qacenter/bugl ... alue0-0-0=
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
Simon
- VIP Livecode Opensource Backer

- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
Post
by Simon » Mon Feb 11, 2008 8:11 pm
Hi Mark,
I just had a fld.
Code: Select all
put the long date into todayDate
convert todayDate to seconds
put todayDate into fld...
But in reading the bug reports I can see there is a lot going on. But still seconds from 1970 should be the same.
Simon
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Mon Feb 11, 2008 8:15 pm
Simon,
If you do this on two computers on both sides of the big pond at the same time, you get different results for sure, but that's normal.
How did you check that the value returned was incorrect?
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
Simon
- VIP Livecode Opensource Backer

- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
Post
by Simon » Mon Feb 11, 2008 8:20 pm
Hi Mark,
While on the phone I just asked them to read the seconds, then I converted them back to long date.
Yes they are GMT +1 and I am GMT -8, but the test was done am my time and pm their time same day.
Simon
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Tue Feb 12, 2008 1:37 pm
Simon,
I don't think that comparison between machines makes sense. Of course, I agree that the seconds from 1970 should give approximately the same result, but to find out what the bug is, try to see convert the seconds back to long date on the same machine. Is the result still wrong? What operating system are the two of you using?
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
malte
- Posts: 1098
- Joined: Thu Feb 23, 2006 8:34 pm
-
Contact:
Post
by malte » Tue Feb 12, 2008 6:30 pm
hi Simon,
if you type
put the buildnumber
in the messagebox and hit return, what do you get?
(There are 3 builds of 2.8.1 and there has been a date conversion bug in builds prior to the last one)
Atb,
Malte
-
Simon
- VIP Livecode Opensource Backer

- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
Post
by Simon » Tue Feb 12, 2008 7:40 pm
Hi Mark, Malte,
Malte the build number is 472 what is the most current?
Mark we're testing on Xp and it's going to take a bit to get testing done on the same machine. But I will keep you informed.
Thanks,
Simon
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Tue Feb 12, 2008 11:33 pm
Hi Simon,
It look slike 472 is the last build of 2.8.1. Newer builds are the 2.9 beta.
I'll do a test with XP as soon as I have an opportunity to do so.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
Simon
- VIP Livecode Opensource Backer

- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
Post
by Simon » Tue Feb 12, 2008 11:38 pm
Thanks Mark!
Regards,
Simon