@blinkk/degu
    Preparing search index...

    Function utcDateToLocalTimeZone

    • Converts a utc based time that you might created into the local time.

      const myUTCDate = new Date('2020-06-20 03:45:00');
      const theUTCDateInLocalTime = time.utcDateToLocalTimeZone(myUTCDate);


      // Do Stuff. Now it is in local time zone.
      const diff = thisUTCDateInLocalTime - new Date();

      Now the theUTCDateInLocalTime is the UTC time adjusted to your local computer timezone.

      Parameters

      • utcDate: Date

      Returns Date