BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Function applyTimezoneOffset

    • Returns a Date object that represents the same local wall-clock time as the given date, but in the specified numeric timezone.

      Parameters

      • date: Date

        The local date/time (your current local system time)

      • tzOffset: number

        The timezone offset in hours from UTC (e.g. +2, -5.5, +9.75)

      Returns Date

      A Date object that represents that same local time in UTC terms.