Probelm with Convert

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Sat Feb 4 17:49:30 EST 2012


Hi Pete,

i do not know if this is a bug, but i am doing this all the time. I am working with german date format settings and have to convert the date from system date to english date, before converting to date items.

Regards,

Matthias




Am 04.02.2012 um 23:33 schrieb Pete:

> 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>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list