• import { adjustTimezone } from '@src/hylo-components/utils/usefull/usefull';

    Adjusts/adds the timezone in the given ISO formatted datetime string with the local machines timezone. The date and time values stay the same so that it can be used for local string formatting.

    If the given datetime string has a timezone, the adjusted timezone will show a colon or not depending whether the original showed one. (default is none)

    Parameters

    • datetime: string

      e.g. 2019-11-05T03:02:09+0200

    Returns string

    2019-11-05T03:02:09+0100

Generated using TypeDoc