Page 1 of 1
convert the long date to seconds Europe/US
Posted: Tue Jan 29, 2008 11:52 pm
by Simon
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
Posted: Mon Feb 11, 2008 6:22 pm
by Mark
Simon,
You have probably run into a Rev bug.
Which version are you using?
Mark
Posted: Mon Feb 11, 2008 6:40 pm
by Simon
Hi Mark,
I'm using Rev Studio rev 2.8.1.
Really a bug??
Thanks,
Simon
Posted: Mon Feb 11, 2008 7:31 pm
by Mark
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
Posted: Mon Feb 11, 2008 8:11 pm
by Simon
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
Posted: Mon Feb 11, 2008 8:15 pm
by Mark
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
Posted: Mon Feb 11, 2008 8:20 pm
by Simon
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
Posted: Tue Feb 12, 2008 1:37 pm
by Mark
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
Posted: Tue Feb 12, 2008 6:30 pm
by malte
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
Posted: Tue Feb 12, 2008 7:40 pm
by Simon
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
Posted: Tue Feb 12, 2008 11:33 pm
by Mark
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
Posted: Tue Feb 12, 2008 11:38 pm
by Simon
Thanks Mark!
Regards,
Simon