Skip to main content


 

Symptoms


Performing the Execute the Update Document Metadata event by ID method, and used the System Value: Current Date from the Context Browser. Metadata was updated during a test run, but the date populated was yesterday instead of today.
Verified server date is correct.
 

Diagnoses


The behavior is verified on support environment and sent to labs for further investigation.
 

Resolution

Logged a bug and linked this ticket to TFS item #615228. The bug once reviewed will be fixed in the future versions of the K2 product.

The issue is that when using the ?Current Date? Environment Field as a input into a SmartObject dateTime field, SmartForms sends the date in this format ?yyyy-MM-dd?.
The forms web service will then try to convert that date from UTC to Local time, and if your region is GMT - it will end up changing the date to the previous date.
Example US PST being GMT 8- and the date sent in being 2016-02-17, will be converted to a local time off 2016-02-16 16:00

The work around is to use the 'Current Date and Time' system values as this will alleviate the issue.




 
Be the first to reply!

Reply