Umbraco 7 UpdateDate incorrectly comes back as UTC
Hi there,
We are running an Umbraco 7.1.6 site, and the update date on nodes is coming back as UTC rather than GMT.
So, if the node was published at 10am GMT, the API is telling me that it was published at 10am UTC. Calling .ToUniversalTime() confirms this, but you can see it in the UpdateDate DateTime object.
Any thoughts?
Edit: I should point out that I'm using IContent here and not IPublishedContent
Edit2: Schoolboy error, I wrote GMT but I meant BST (British Summer Time), i.e. UTC/GMT+1. So publishing a node at 10am BST was giving an UpdateDate of 10am UTC instead of 9am UTC.
Does it help to add the tag and add the proper language code in your web.config file? (Probably a longshot but worth trying - has worked for me in a scenario that sounds similar in the past).
Umbraco 7 UpdateDate incorrectly comes back as UTC
Hi there,
We are running an Umbraco 7.1.6 site, and the update date on nodes is coming back as UTC rather than GMT.
So, if the node was published at 10am GMT, the API is telling me that it was published at 10am UTC. Calling .ToUniversalTime() confirms this, but you can see it in the UpdateDate DateTime object.
Any thoughts?
Edit: I should point out that I'm using IContent here and not IPublishedContent
Edit2: Schoolboy error, I wrote GMT but I meant BST (British Summer Time), i.e. UTC/GMT+1. So publishing a node at 10am BST was giving an UpdateDate of 10am UTC instead of 9am UTC.
Hi Zac
Does it help to add the tag and add the proper language code in your web.config file? (Probably a longshot but worth trying - has worked for me in a scenario that sounds similar in the past).
It should be placed in the
Hope this helps.
/Jan
is working on a reply...