Saving date to a datetime field in different environments

According to Patric a datetime is converted to UTC when saved. What defines what Litium is converting from?

https://forum.litium.com/t/saved-datetime-field-value-1h-diff/1353/3

Is it the server? Then i guess that different datetimeoffset will be stored depending on the current environment time zone.

For example
2024-08-08 12:00 will on my computer with swedish time zone be stored as 2024-08-08 10:00
and on a server in LCC with time zone UTC stored as 2024-08-08 12:00.

Have I understood this correct?

I understand that i can use DateTimeOffset to avoid this but i need to understand how this can affect an solution moving from legacyhosting to litium LCC/serverless environment.

Litium version: 8.14.2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.