Hex Core JS
    Preparing search index...

    Function replaceTZString

    • Replaces the timezone offset on a ISO-format (not necessarily in UTC) date string with the given offset. Returns a new date time string.

      Parameters

      • dateTimeString: string

        The date time string (ISO format, not necessarily in UTC) to use.

      • tzOffset: string

        An ISO timezone offset string to give to the resulting date time string.

      Returns string