Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Zac 223 posts 575 karma points
    Oct 22, 2014 @ 12:39
    Zac
    0

    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.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Oct 24, 2014 @ 07:46
    Jan Skovgaard
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft