Support Article
DateTime control does not display the local time
SA-14229
Summary
A DateTime control is used for a property on a section, but it is not displaying the time in local time zone.
Error Messages
Not Applicable
Steps to Reproduce
- Create a Date Property.
- Property value is saved as GMT in database.
- Add the Date property in a section using a DateTime control.
- Value is displayed in GMT rather than the local time zone.
Root Cause
An issue in the custom application code or rules. The issue is related to the use of a date property without a time zone.
Resolution
Perform the following local-change:
Use a DateTime property, which maintains the time zone, instead of just a Date property, so that the DateTime control has access to the local time.
Published April 15, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.