Copied to clipboard

Flag this post as spam?

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


  • Mike 18 posts 39 karma points
    Jul 13, 2015 @ 14:48
    Mike
    0

    Backoffice dates corrected for local time?

    Hi. Can anyone please explain how we can display DateTime pickers in editor friendly format - eg. British Summer Time - whilst still storing everything in UTC? I can't find any information anywhere! We're using v7.2 and need the Event Management admin interface to work for (British) humans rather than computers! Thanks!

  • Mike 18 posts 39 karma points
    Aug 17, 2015 @ 13:24
    Mike
    0

    Bump!

  • Hywel Rees 56 posts 224 karma points
    Aug 19, 2015 @ 12:57
    Hywel Rees
    0

    Hi Mike,

    I'm not sure this will be any use to you, but I fancied trying to create my first package as a learning exercise.

    It adds a new data type called "Date Time With UTC Offset", and simply displays the time difference from UTC of whatever locale your machine is set to.

    enter image description here

    Download here

    Cheers,

    Hywel

  • Mike 18 posts 39 karma points
    Aug 19, 2015 @ 13:13
    Mike
    0

    Hi Hywel,

    Thanks for getting back to me! My colleague has implemented a 'hack' that adjusts the javascript representation of the date on-the-fly, whilst keeping it stored as UTC. The only issue we have is that any Umbraco updates will probably overwrite the changed code :(

    But many thanks for sharing your code with us!

    Cheers, Mike

Please Sign in or register to post replies

Write your reply to:

Draft