You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/04/28 18:04:50 UTC
[1/2] git commit: [flex-utilities] [refs/heads/develop] - AntOnAIR:
switched from spark.formatters.DateTimeFormatter to native
flash.globalization.DateTimeFormatter to make project more easily portable to
pure AS3
Repository: flex-utilities
Updated Branches:
refs/heads/develop 624f41c92 -> 338850873
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/develop
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;
[2/2] git commit: [flex-utilities] [refs/heads/develop] - Merge
branch 'ant-tstamp-native' of https://github.com/joshtynjala/flex-utilities
into develop. This closes #5
Posted by ah...@apache.org.
Merge branch 'ant-tstamp-native' of https://github.com/joshtynjala/flex-utilities into develop. This closes #5
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/33885087
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/33885087
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/33885087
Branch: refs/heads/develop
Commit: 338850873a2c3e1510bc97a501b2bc7fac65b36f
Parents: 624f41c 6018638
Author: Alex Harui <ah...@apache.org>
Authored: Tue Apr 28 09:02:19 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Apr 28 09:04:00 2015 -0700
----------------------------------------------------------------------
ant_on_air/src/org/apache/flex/ant/tags/TStamp.as | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------