I'd say this is a bug. There's often problems with convert and system dates. 
Because of that, I suggest only to convert _into_ system date, but never _from_ 
it. That way, you will only use 'fixed' dates, and they are always an expected 
format for convert, so you won't run into random problems with some weird 
format that LC didn't expect.

On 04.02.2012, at 23:33, Pete wrote:

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


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to