flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLEX-35106) Incorrect date in datefield popup for fr_FR locale
Date Wed, 06 Jul 2016 07:47:11 GMT

    [ https://issues.apache.org/jira/browse/FLEX-35106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15363917#comment-15363917
] 

Justin Mclean edited comment on FLEX-35106 at 7/6/16 7:46 AM:
--------------------------------------------------------------

I make the changes on the development (but it does help if I push them).

You can see it on the git hub mirror:
https://github.com/apache/flex-sdk/commit/930e912c86d89b343de5b2377358e9e4626f9b67

JFYI information to test I recompile the mx project (via ant) and then run an example and
a selection of mustella tests to do with the DateField and i18n.

This is probably a bit of a hack  (but it does work well enough). I didn't want to add a list
of short month names to the resource files for all languages, but if we run into a similar
issue with a mother language I'll probably consider going down that path.


was (Author: jmclean):
I make the changed on the development, you can easily see it on the git hub mirror.

https://github.com/apache/flex-sdk/commit/ba846c4478d78f131387f9cc7561280c40ef963b

JFYI information to test I recompile the mx project (via ant) and then run an example and
a selection of mustella tests to do with the DateField and i18n.

This is probably a bit of a hack  (but it does work well enough). I didn't want to add a list
of short month names to the resource files for all languages, but if we run into a similar
issue with a mother language I'll probably consider going down that path.

> Incorrect date in datefield popup for fr_FR locale
> --------------------------------------------------
>
>                 Key: FLEX-35106
>                 URL: https://issues.apache.org/jira/browse/FLEX-35106
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: DateField
>    Affects Versions: Apache Flex 4.15.0
>         Environment: Windows 7
>            Reporter: Peter Marcoen
>            Assignee: Justin Mclean
>              Labels: datefield, french, locale
>             Fix For: Apache Flex 4.16.0
>
>
> h4. Steps to reproduce:
> 1. Create a new project
> 2. Set the compiler arguments to "-locale fr_FR"
> 3. Add the following line to the main application:
> {code:xml}
> <mx:DateField selectedDate="{new Date(2016, 6, 4, 13)}"/>
> {code}
> 4. Run the application and click on the calendar icon
> h4. Expected result:
> The selected date should be the 4th of JULY, which it is if you set the locale to "en_US"
> h4. Actual result:
> The selected date is the 4th of JUNE
> h4. Possible reason:
> Because the abbreviation of june and july is the same in French ("Jui"), the popup probably
finds the first month who's abbreviated name matches the selected abbreviated name and thus
incorrectly sets the month to June



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message