Calendar support timezone

Posted by: hanniewang on 21 November 2018, 10:56 pm EST

    • Post Options:
    • Link

    Posted 21 November 2018, 10:56 pm EST

    Hi Wijmo Team,

    I need change the timezone in my website, but the calendar controller doesn’t support the timezone value. I can see that the calendar document said the value can only pass in the time value of the Date type. Could you have some suggestions?

    https://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.input.Calendar.Class.html#value

    best regards,

    Hannie

  • Posted 22 November 2018, 5:14 am EST

    Hi Hannie,

    You may use Date.UTC() method to convert the value selected to UTC time and then use that to convert to any time zome you may like.

    Please refer to the following sample:

    https://stackblitz.com/edit/js-zuqufb?file=index.js

    If this does not fulfil your requirement, then please feel free to explain more about your use case.

    Regards

    Sharad

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels