Copied to clipboard

Flag this post as spam?

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


  • Mikael Axel Kleinwort 154 posts 499 karma points c-trib
    Nov 27, 2021 @ 17:03
    Mikael Axel Kleinwort
    0

    TimeZoneInfo selector data type

    For dates entered, I need to also store the relevant TimeZoneInfo. Is there a TimeZoneInfo selector data type for Umbraco 8 anywhere?

    I am not fluent on Angular Js, so I don't really want to start writing my own selector....

    Any input is greatly appreciated.

    Kind regards! Mikael

  • Anders Bjerner 487 posts 2996 karma points MVP 9x admin c-trib
    Nov 27, 2021 @ 18:45
    Anders Bjerner
    1

    Hi Mikael

    To my knowledge such a property editor / data type does not exist.

    But by utilizing the data list property editor in the amazing Contentment package, you can create your own data source as shown in this example:

    https://github.com/leekelleher/umbraco-contentment/blob/67545958cfdb9d72838f56ae394e6defae55d240/docs/editors/data-list.md#extending-with-your-own-custom-data-source

    The example specifically shows a TimeZoneDataSource, which sounds like what you need 😉

  • Mikael Axel Kleinwort 154 posts 499 karma points c-trib
    Nov 27, 2021 @ 18:47
    Mikael Axel Kleinwort
    0

    Hi Anders,

    thank you for your suggestion! I'll dvelve into it and report back.

    Kind regards! Mikael

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Nov 27, 2021 @ 23:34
    Lee Kelleher
    100

    Just to note, the TimeZone data source is now available as part of the Contentment Data List editor by default. No need to write custom code for it. 👍

  • Mikael Axel Kleinwort 154 posts 499 karma points c-trib
    Nov 28, 2021 @ 06:50
    Mikael Axel Kleinwort
    1

    Absolutely amazing. Thank you for the hint - and for the package! 👍👍

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies