non localised dateTime attribute issue

Hi,   I’m trying to use a non-localised dateTime attribute in the project, but when i’m using this attribute in local  everything works fine but when used on server it’s always one day off. May i know what may be the reason for  such behaviour.   Thanks in advance
1 answers

The non-localized feature is only for display in the client.

On the server, make sure to use the proper functions depending on your need.
 – formatDateTimeUTC or formatDateTime
 – parseDateTimeUTC or parseDateTime


Read more about it here: