This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
In this scenario:
- We created a SmartObject with a datetime property.
- Then added an entry which includes a valid datetime.
A workflow will alter some properties of that SmartObject entry and save, but does not have an input for the datetime, so it should not be changed. However, it is incorrectly overwriting the datetime property as 2001-01-01 00:00:00.000.
After confirming that the property is being overwritten despite no input value for the save, by using a new test solution we confirmed that the issue is not limited to the one workflow.
K2 server had it's short date set to dd/MM/yy (in Windows settings) while it was MM/dd/yyyy on the SQL server. The issue has been resolved by changing the computer's format date as mm/dd/yyyy