flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - FLEX-FLEX-16004 Fixed issue of parsing date time strings containing timezone info and having the year at the end.
Date Thu, 09 May 2013 06:35:03 GMT
Updated Branches:
  refs/heads/develop 357eeb687 -> ed5baabd5


FLEX-FLEX-16004 Fixed issue of parsing date time strings containing timezone info and having
the year at the end.


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

Branch: refs/heads/develop
Commit: ed5baabd59686ecda65a80d7313bae674a2e10d7
Parents: 357eeb6
Author: Justin Mclean <jmclean@apache.org>
Authored: Thu May 9 16:34:47 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Thu May 9 16:34:47 2013 +1000

----------------------------------------------------------------------
 .../framework/src/mx/formatters/DateFormatter.as   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ed5baabd/frameworks/projects/framework/src/mx/formatters/DateFormatter.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/formatters/DateFormatter.as b/frameworks/projects/framework/src/mx/formatters/DateFormatter.as
index ddac66c..f81fb12 100644
--- a/frameworks/projects/framework/src/mx/formatters/DateFormatter.as
+++ b/frameworks/projects/framework/src/mx/formatters/DateFormatter.as
@@ -139,7 +139,7 @@ public class DateFormatter extends Formatter
         var marker:Object = 0;
         
         var count:int = 0;
-        var len:int = str.length;
+        var len:int = 0;
 		var isPM:Boolean = false;
 		
 		var punctuation:Object = {};
@@ -174,6 +174,7 @@ public class DateFormatter extends Formatter
         var timezoneRegEx:RegExp = /(GMT|UTC)((\+|-)\d\d\d\d )?/ig;
         
         str = str.replace(timezoneRegEx, "");
+		len = str.length;
         
         while (count < len)
         {


Mime
View raw message