mobilePickDate result format?

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
slowmaker
Posts: 47
Joined: Fri Feb 08, 2019 1:53 pm

mobilePickDate result format?

Post by slowmaker » Sun Feb 23, 2020 7:35 pm

Am I misreading the docs?
The selected date, time or date and time are returned in the result. The value is in seconds since the UNIX Epoch. If the picker is cancelled then cancel is returned in the result.
Looks to me like this line:
mobilePickDate "date"
should return seconds since epoch in the result, but I keep getting just a short date format.

Code: Select all

mobilePickDate "date"
put the result into tDate
answer tDate  -- I'm getting "2/23/20", here, not the expected seconds since unix epoch
This is on a Galaxy J3 Luna Pro, running android 6.0.1.
Creating standalone and delivering to phone via Test menu item in LC 9.5.0 build 15503.
The important thing is not to stop questioning. Curiosity has its own reason for existence. - Albert Einstein (LIFE Magazine (1955 may 2), p64)

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: mobilePickDate result format?

Post by Klaus » Sun Feb 23, 2020 7:41 pm

Obviously a known bug since 2013! :(
https://quality.livecode.com/show_bug.cgi?id=11554

Post Reply

Return to “Android Deployment”