ThemeParks.wiki Parks API - v2.0.0
    Preparing search index...

    Function localFromFakeUtc

    • Convert a "fake UTC" timestamp to a correctly-offset local ISO string.

      Many park APIs (SeaWorld, etc.) return timestamps that look like UTC (ending in 'Z' or without offset) but actually represent local times. For example, "2026-04-01T09:00:00Z" really means 09:00 local time.

      This function strips the Z, extracts the date and time components, and uses constructDateTime() to attach the correct timezone offset.

      Parameters

      • fakeUtcStr: string

        A UTC-formatted string that actually represents local time

      • tz: string

        IANA timezone name

      Returns string

      ISO 8601 string with correct timezone offset