Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Discussion Loading the timezone and try to convert to other timezones

Discussion in 'Web' started by Saravana_Vins, Oct 12, 2022.

  1. Saravana_Vins


    May 5, 2017
    Hi All,
    We are working on the Analog clock Functioanlities, getting the time based on the system time
    with using the timezone.
    Time calculation are not working, while trying to load the timezone and try to convert to this timezone the issue are coming.
    We are getting the below error
    Parameter name: destinationTimeZone at System.TimeZoneInfo.ConvertTime (System.DateTime dateTime, System.TimeZoneInfo sourceTimeZone, System.TimeZoneInfo destinationTimeZone)
    [0x00000] in <00000000000000000000000000000000>:0 at
    System.TimeZoneInfo.ConvertTime (System.DateTime dateTime, System.TimeZoneInfo destinationTimeZone)
    [0x00000] in <00000000000000000000000000000000>:0 at AnalogClock.UpdateTimer ()
    [0x00000] in <00000000000000000000000000000000>:0 at AnalogClock.Update ()
    [0x00000] in <00000000000000000000000000000000>:0

    Module : WebGL
    Unity Version : 2019.4.36f1

    Give any suggestions to fix the above issue.
    Thanks in Advance.