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

[30/50] [abbrv] git commit: [flex-utilities] [refs/heads/as3httpclient-work] - AntOnAIR: switched from spark.formatters.DateTimeFormatter to native flash.globalization.DateTimeFormatter to make project more easily portable to pure AS3

AntOnAIR: switched from spark.formatters.DateTimeFormatter to native flash.globalization.DateTimeFormatter to make project more easily portable to pure AS3


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

Branch: refs/heads/as3httpclient-work
Commit: 60186382d1c8d3e3b486751981ca2ea0c99ca461
Parents: 1a46b11
Author: Josh Tynjala <jo...@gmail.com>
Authored: Fri Apr 24 13:58:25 2015 -0700
Committer: Josh Tynjala <jo...@gmail.com>
Committed: Fri Apr 24 13:58:25 2015 -0700

----------------------------------------------------------------------
 ant_on_air/src/org/apache/flex/ant/tags/TStamp.as | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/60186382/ant_on_air/src/org/apache/flex/ant/tags/TStamp.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/TStamp.as b/ant_on_air/src/org/apache/flex/ant/tags/TStamp.as
index 8b7f88b..0646a1f 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/TStamp.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/TStamp.as
@@ -21,7 +21,8 @@ package org.apache.flex.ant.tags
     import mx.core.IFlexModuleFactory;
     import mx.resources.ResourceManager;
     
-    import spark.formatters.DateTimeFormatter;
+    import flash.globalization.DateTimeFormatter;
+    import flash.globalization.LocaleID;
     
     import org.apache.flex.ant.Ant;
     import org.apache.flex.ant.tags.supportClasses.TaskHandler;
@@ -44,14 +45,14 @@ package org.apache.flex.ant.tags
             super.execute(callbackMode, context);
             
             var d:Date = new Date();
-            var df:DateTimeFormatter = new DateTimeFormatter();
-            df.dateTimePattern = "yyyyMMdd";
+            var df:DateTimeFormatter = new DateTimeFormatter(LocaleID.DEFAULT);
+            df.setDateTimePattern("yyyyMMdd");
             var dstamp:String = df.format(d);
             context["DSTAMP"] = dstamp;
-            df.dateTimePattern = "hhmm";
+            df.setDateTimePattern("hhmm");
             var tstamp:String = df.format(d);
             context["TSTAMP"] = tstamp;
-            df.dateTimePattern = "MMMM dd yyyy";
+            df.setDateTimePattern("MMMM dd yyyy");
             var today:String = df.format(d);
             context["TODAY"] = today;