You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by bi...@apache.org on 2015/06/12 21:52:31 UTC

git commit: [flex-sdk] [refs/heads/develop] - This closes This closes #19

Repository: flex-sdk
Updated Branches:
  refs/heads/develop 0df1c3623 -> 3152f45b9


This closes This closes #19

Update DateTimeFormatterEx.as

Proposing patch for bug Apache Flex / FLEX-34581: DateSpinner crash when locale that uses a 24-hour setting.

Updated public function getUse24HourFlag() of DateTimeFormatterEx.as to return a Boolean value instead of an Object value.

Signed-off-by: OmPrakash Muppirala <bi...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/3152f45b
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/3152f45b
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/3152f45b

Branch: refs/heads/develop
Commit: 3152f45b9991df2eb36eb5b618f428cc673a75e1
Parents: 0df1c36
Author: Ad Pijnenburg <pi...@riom.nl>
Authored: Thu Jun 11 12:27:27 2015 +0200
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Fri Jun 12 12:40:37 2015 -0700

----------------------------------------------------------------------
 .../spark/globalization/supportClasses/DateTimeFormatterEx.as | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/3152f45b/frameworks/projects/spark/src/spark/globalization/supportClasses/DateTimeFormatterEx.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/globalization/supportClasses/DateTimeFormatterEx.as b/frameworks/projects/spark/src/spark/globalization/supportClasses/DateTimeFormatterEx.as
index d3b16e3..62c4717 100644
--- a/frameworks/projects/spark/src/spark/globalization/supportClasses/DateTimeFormatterEx.as
+++ b/frameworks/projects/spark/src/spark/globalization/supportClasses/DateTimeFormatterEx.as
@@ -681,12 +681,12 @@ public class DateTimeFormatterEx extends DateTimeFormatter
      *          because the current pattern does not contain either
      *          "H" or "h".
      */
-    public function getUse24HourFlag():Object
+    public function getUse24HourFlag():Boolean
     {
         const hourPattern:String = getHourPattern();
         
         if (!hourPattern)
-            return null;
+            return false;
         
         const use24Hour:Boolean = hourPattern.indexOf("H") >= 0;
         const use12Hour:Boolean = hourPattern.indexOf("h") >= 0;
@@ -694,8 +694,7 @@ public class DateTimeFormatterEx extends DateTimeFormatter
             return true;
         else if (!use24Hour && use12Hour)
             return false;
-        
-        return null;
+        else return false;
     }
     
     [Bindable("change")]