Timezone issues with UpdatedDate + VersionDate on Document object
Hi there,
I'm having some issues understanding where Umbraco is doing its timezone conversion. I have Umbraco running on several separate servers (dev, test, live), all set to the New Zealand time zone. When I publish a document, the 'Last Published' and 'Last Edited' fields are showing as -21 hours out.
Looking at the database, in the cmsDocument table, the published version is correct for local time, and the 'newest' version is -21 hours out. I've tested this with documents older than 6+ months, to avoid any confusion between the versions.
NZ is currently UTC+13, and this is indicative of the app being set to UTC-8 - roughly in line with San Francisco.
I've previously looked through the Document.cs source, but have only found DateTime.Now references.
Has anyone encountered the same issue, or could shed some light on what's happening here?
Timezone issues with UpdatedDate + VersionDate on Document object
Hi there,
I'm having some issues understanding where Umbraco is doing its timezone conversion. I have Umbraco running on several separate servers (dev, test, live), all set to the New Zealand time zone. When I publish a document, the 'Last Published' and 'Last Edited' fields are showing as -21 hours out.
Looking at the database, in the cmsDocument table, the published version is correct for local time, and the 'newest' version is -21 hours out. I've tested this with documents older than 6+ months, to avoid any confusion between the versions.
NZ is currently UTC+13, and this is indicative of the app being set to UTC-8 - roughly in line with San Francisco.
I've previously looked through the Document.cs source, but have only found DateTime.Now references.
Has anyone encountered the same issue, or could shed some light on what's happening here?
PS - This is version 4.5.2
Hi Overflew
Perhaps this can be solved by adding UICulture = auto in the web.config file? Read more about it here: http://msdn.microsoft.com/en-us/library/system.web.ui.page.uiculture.aspx
/Jan
is working on a reply...