Page 1 of 1

iPhone pickDate

Posted: Wed Sep 07, 2011 11:37 pm
by stevenchalmers
I must be missing something with iphonePickDate tutorial because the starting value is today, rather than the second parameter I give it.

According to the dictionary the iphonePickDate syntax is: iphonePickDate [style, current, start, end, step]

Note that the second parameter is called "current" rather than "selected".

If I call iphonePickDate with this code the date that is first displayed is today, not 07/29/11.

Code: Select all

put "07/29/2011" into tSelected // the date and time selected by default
put "07/20/2011" into tRangeStart // the minimum date and time that can be selected
put "08/01/2011" into tRangeEnd // the maximum date and time that can be selected
put 5 into tInterval

// convert the dates into seconds since the UNIX Epoch
convert tSelected to seconds
convert tRangeStart to seconds
convert tRangeEnd to seconds

// launch the date and time picker
iphonePickDate "dateTime", tSelected, tRangeStart, tRangeEnd, tInterval
I have the same issue if I use "date" as the first parameter too.


Steven (Colorado, USA)

Re: iPhone pickDate

Posted: Thu Sep 08, 2011 9:28 am
by Dixie
Hi...

I am having the same problem... it looks like you can have any day as long as it is today! :D

be well

Dixie

Re: iPhone pickDate

Posted: Sun Sep 11, 2011 10:12 pm
by CALL-151
Off topic, I know, but how'd you learn that 4.6.4 had been released? I found out by inference after reading this topic. There's gotta be a better way. :?

Re: iPhone pickDate

Posted: Mon Sep 12, 2011 7:42 am
by Jellicle
So you didn't get the email? Contact RunRev to make sure you are on their mail list.

Gerry

Re: iPhone pickDate

Posted: Mon Sep 12, 2011 12:59 pm
by CALL-151
Will do, thanks. I get the newsletter and several/month from sales@runrev, but no 4.6.4 announcement.

BTW, after briefly playing around with different settings in pickDate I have the same issue.

Re: iPhone pickDate (interesting result)

Posted: Fri Sep 16, 2011 1:16 pm
by Nikovash
After reading this post I went and tried out the iPhone Date Picker command and experienced the same result. Interesting enough I had a weird result come to light that I just didn't think of. Effectively the date 1/1/1970 is actually 28800 in seconds, because I am at GMT -8:00 hours of trying to come up with a conversion to offset for this was not needed and I was simply overreacting to what should happen in the first place. Silly time zones!

Re: iPhone pickDate

Posted: Fri Sep 16, 2011 4:30 pm
by CALL-151
Just checked version 4.6.4 build 1453 to see if this is resolved. It isn't.