Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 82689200B35 for ; Tue, 5 Jul 2016 15:32:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 80B16160A60; Tue, 5 Jul 2016 13:32:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CA29D160A2C for ; Tue, 5 Jul 2016 15:32:19 +0200 (CEST) Received: (qmail 58865 invoked by uid 500); 5 Jul 2016 13:32:13 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 58836 invoked by uid 99); 5 Jul 2016 13:32:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 13:32:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0495A2C02A4 for ; Tue, 5 Jul 2016 13:32:11 +0000 (UTC) Date: Tue, 5 Jul 2016 13:32:11 +0000 (UTC) From: "Peter Marcoen (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-35106) Incorrect date in datefield popup for fr_FR locale MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 05 Jul 2016 13:32:20 -0000 [ https://issues.apache.org/jira/browse/FLEX-35106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15362498#comment-15362498 ] Peter Marcoen commented on FLEX-35106: -------------------------------------- [~jmclean] I think it's an overuse of the parseFunction (by default stringToDate). The parseFunction gets called in: # set date: when the value is a string # displayDropdown # focusOutHandler # keyDownHandler: when the key pressed is ENTER # textInput_changeHandler I see the value of calling it in the textInput_changeHandler, but in the other functions it might not be needed? If the text field is updated manually it has to trigger textInput_changeHandler. > 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 > > 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} > > {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)