Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

DateTime UTC Offset

$
0
0

I'm currently working on a site where we show StartPublish (among other datetime-properties) for the end user. When working locally where we have UTC+1 (Sthlm) everything works fine, but when deployed to Azure which uses UTC we notice some unwanted behavior.

If we set Published to 2015-02-26 00:00. It will be saved as 2015-02-25 23:00. Probably due to the fact that the editor is working on a browser with UTC+1, while the webserver is set to UTC. As long as the editor and the server uses the same timezone it works fine.

Our gobalization in web.config looks as such

Are we doing something wrong, and if so, can we do something to fix this? We're running C# MVC with EPiServer 7.19.2.0.


Viewing all articles
Browse latest Browse all 6894

Trending Articles