Hi list,

I'm facing some trouble while trying to force dates to be displayed with 
the rules of
the client locale in our application.
I'm using the following code:


     if (datai.date != null) {
         var formatString = qx.locale.Date.getDateFormat("short", 
qx.bom.client.Locale.LOCALE);
         this.debug("formatString = " + formatString);
         var dateFormat = new qx.util.format.DateFormat(formatString, 
qx.bom.client.Locale.LOCALE);
         tmp[dateIndex] = dateFormat.format(datai.date);
     }


Printing qx.bom.client.Locale.LOCALE on the console correctly outputs 
"fr", unfortunately,
the formatString still shows "formatString = M/d/yy" (while it should be 
d/M/yy for France.)

I guess I'm doing something wrong but I fail to see what. Thus, any hint 
at the solution
would be appreciated.


Thanks in advance,

-- 
Joffrey Fuhrer
NOVLOG Intern


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to