nihad640 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

Problem with DateTimeItem and i18n #633

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. using attached TestCase
2. set locale=it adding /?locale=it to URL
2. enter a date (and any time) as 01/10/2011 00:00 in Contact Date or in 
Planned Start, now the date time format is TOEUROPEANSHORTDATETIME DD/MM/YYYY 
HH:MM October 1, 2011
3. when edited field lost focus, the field changes its content and change the 
date become 10/01/2011 00:00 (October 1, 2011 TOUSSHORTDATETIME MM/DD/YYYY 
HH:MM or January 10, 2011 TOEUROPEANSHORTDATETIME DD/MM/YYYY HH:MM)
4. all times that the edited field loses focus the date toggles the date format 
and date value.

What is the expected output? What do you see instead?
The date format and the date value should not change

What version of the product are you using?
SmartGWT latest Nightly Builds, /builds/SmartGWT/3.x/LGPL/2011-10-14 (and those 
just above)

On what operating system?
Xp, W7

What browser(s) does this happen in?
FF 4.0, FF 5.0, Crome 12.0.742.122.

Please provide any additional information below.
I'm internationalizing my project and I found that:
when locale=it and the day is greater than 12 then works fine, but when the day 
is less or equal 12 then toggle.

Setting locale=en works fine.

If I force the date format then works fine in any case.

Regards

Original issue reported on code.google.com by vlui...@tiscali.it on 14 Oct 2011 at 3:44

Attachments:

GoogleCodeExporter commented 9 years ago
This should be fixed in the next nightly build. Please take a look and let us 
know if you continue to see it.

Original comment by smartgwt...@gmail.com on 17 Oct 2011 at 8:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you very much, it works very fine, also validation is ok.
I used latest /builds/SmartGWT/3.x/LGPL/2011-10-18.
Regards

Original comment by vlui...@tiscali.it on 18 Oct 2011 at 1:23