Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 53A19102D9 for ; Sun, 28 Apr 2013 09:54:20 +0000 (UTC) Received: (qmail 49864 invoked by uid 500); 28 Apr 2013 09:54:18 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 49199 invoked by uid 500); 28 Apr 2013 09:54:17 -0000 Mailing-List: contact dev-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 dev@flex.apache.org Received: (qmail 48861 invoked by uid 99); 28 Apr 2013 09:54:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Apr 2013 09:54:16 +0000 Date: Sun, 28 Apr 2013 09:54:16 +0000 (UTC) From: "Justin Mclean (JIRA)" To: dev@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-12503) DateFormatter with formatString "MM/DD/YYYY H:NN A" formats Time of "00:00:00" to "24:00 AM" instead of "00:00 AM" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-12503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13643954#comment-13643954 ] Justin Mclean commented on FLEX-12503: -------------------------------------- It's odd but it's functioning as described. A date time format of "H" is hour 1-24 hours with the first hour of the day being 24 just like lifer midnight Use "J" rather than "H" which is 0-23 hours or for an even more sensible result (with an AM/PM indicator) use "L" which is 1-12. > DateFormatter with formatString "MM/DD/YYYY H:NN A" formats Time of "00:00:00" to "24:00 AM" instead of "00:00 AM" > ------------------------------------------------------------------------------------------------------------------ > > Key: FLEX-12503 > URL: https://issues.apache.org/jira/browse/FLEX-12503 > Project: Apache Flex > Issue Type: Bug > Components: Formatters > Affects Versions: Adobe Flex SDK 3.0 (Release) > Environment: Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > Assignee: Justin Mclean > Priority: Minor > Labels: easytest > > Steps to reproduce: > 1. Create Date object with time of "00:00:00" > 2. Create DateFormatter with formatString of "MM/DD/YYYY H:NN A" > 3. format() and see the result > > Actual Results: > 24:00 AM > > Expected Results: > 00:00 AM (to comply with SQL standard) > > Workaround (if any): > replace " 24:" with " 00:" if found in result string -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira