957 views

Description

Directly assigning a value to a date/time type field using gs.nowDateTime(); in a Run Script workflow activity incorrectly sets the field value to a time in the past. For example, the script current.variables.end_date_time = gs.nowDateTime(); does not work.

Workaround

Set a variable to the current date and time, then set the date/time field to this variable:

gdt = new GlideDateTime();

current.variables.end_date_time = gdt;

 

Related Problem: PRB575125

Seen In

Aspen Patch 2

Fixed In

Eureka

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2014-12-02 07:50:39
Published:2014-12-02