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: https://docs.mendix.com/refguide/parse-and-format-date-function-calls/