Probelm with Convert

Pete pete at mollysrevenge.com
Sat Feb 4 17:33:00 EST 2012


I just ran into what is either a bad misunderstanding on my part or a bug.

I am using the following statement to get the current date in dateitems
format

convert the system date to dateitems
put it into myDate

Works fine on my Mac (I'm in the USA)

People outside of the USA are reporting problems beta testing my
SQLiteAdmin program because it thinks it is an expired demo and the
expiration date it repots is garbage, specifically "//30".

I changed the date format in my System Preferences Language and Text
preference to Canada, and sure enough, now the same statements return empty
instead of valid dateitems.

According to the dictionary "if you use the system keyword, the user's
current system preferences are used to format the date or time".  So why
does my code only work if I set my region to United States?

I have already fixed this by using the english keyword instead of system
(which is kind of ironic since the english date is an American one, not an
English one), but is this a bug?

-- 
Pete
Molly's Revenge <http://www.mollysrevenge.com>



More information about the use-livecode mailing list