diff --git a/framework/minilang/dtd/simple-methods-v2.xsd b/framework/minilang/dtd/simple-methods-v2.xsd
index 7215568b3a..da8a3c4d88 100644
--- a/framework/minilang/dtd/simple-methods-v2.xsd
+++ b/framework/minilang/dtd/simple-methods-v2.xsd
@@ -57,6 +57,22 @@ under the License.
+
+
+
+ The name of the field to set. The target of the assignment.
+ <br/><br/>
+ Required. Attribute type: expression.
+
+
+
+
+
+
+
+
+
+
@@ -1341,15 +1357,7 @@ under the License.
-
-
-
- The name of the field to set. The target of the assignment.
- <br/><br/>
- Required. Attribute type: expression.
-
-
-
+
@@ -4416,43 +4424,52 @@ under the License.
-
+
- The now-timestamp tag creates a java.sql.Timestamp object with the current date and time in it and puts it in a field in the method environment.
+ Sets a field to the current system time.
-
+
+
+
+
+ The field data type. Defaults to java.sql.Timestamp.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Deprecated - use <now>.
+
+
+
+
-
-
-
-
- The name of the method environment field the timestamp will be put in.
-
-
-
-
- The now-date-to-env tag creates a java.sql.Date object with the current date in it and puts it in a field in the method environment.
+ Deprecated - use <now>.
-
-
+
+
+
-
-
-
-
- The name of the method environment field the date will be put in.
-
-
-
-
diff --git a/framework/minilang/src/META-INF/services/org.ofbiz.minilang.method.MethodOperation$Factory b/framework/minilang/src/META-INF/services/org.ofbiz.minilang.method.MethodOperation$Factory
index 14ff462140..8b5cc7f722 100644
--- a/framework/minilang/src/META-INF/services/org.ofbiz.minilang.method.MethodOperation$Factory
+++ b/framework/minilang/src/META-INF/services/org.ofbiz.minilang.method.MethodOperation$Factory
@@ -49,7 +49,6 @@ org.ofbiz.minilang.method.entityops.GetRelatedOne$GetRelatedOneFactory
org.ofbiz.minilang.method.entityops.MakeNextSeqId$MakeNextSeqIdFactory
org.ofbiz.minilang.method.entityops.MakeValue$MakeValueFactory
org.ofbiz.minilang.method.entityops.NowDateToEnv$NowDateToEnvFactory
-org.ofbiz.minilang.method.entityops.NowTimestampToEnv$NowTimestampToEnvFactory
org.ofbiz.minilang.method.entityops.NowTimestampToEnv$NowTimestampFactory
org.ofbiz.minilang.method.entityops.OrderValueList$OrderValueListFactory
org.ofbiz.minilang.method.entityops.RefreshValue$RefreshValueFactory
@@ -77,6 +76,7 @@ org.ofbiz.minilang.method.envops.IterateMap$IterateMapFactory
org.ofbiz.minilang.method.envops.ListToList$ListToListFactory
org.ofbiz.minilang.method.envops.Loop$LoopFactory
org.ofbiz.minilang.method.envops.MapToMap$MapToMapFactory
+org.ofbiz.minilang.method.envops.Now$NowFactory
org.ofbiz.minilang.method.envops.OrderMapList$OrderMapListFactory
org.ofbiz.minilang.method.envops.SetCalendar$SetCalendarFactory
org.ofbiz.minilang.method.envops.SetOperation$SetOperationFactory
diff --git a/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java b/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java
index 98bd3554a2..143e38ec36 100644
--- a/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java
+++ b/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java
@@ -18,51 +18,57 @@
*******************************************************************************/
package org.ofbiz.minilang.method.entityops;
+import org.ofbiz.base.util.collections.FlexibleMapAccessor;
+import org.ofbiz.base.util.string.FlexibleStringExpander;
import org.ofbiz.minilang.MiniLangException;
+import org.ofbiz.minilang.MiniLangValidate;
import org.ofbiz.minilang.SimpleMethod;
-import org.ofbiz.minilang.method.ContextAccessor;
import org.ofbiz.minilang.method.MethodContext;
import org.ofbiz.minilang.method.MethodOperation;
import org.w3c.dom.Element;
/**
- * Creates a java.sql.Date with the current date and puts it in the env
+ * Creates a java.sql.Timestamp object that is set to the current system time.
*/
public class NowDateToEnv extends MethodOperation {
- ContextAccessor envAcsr;
+ private final FlexibleMapAccessor