import {DateInput} from "@heroui/react";
import {parseZonedDateTime, parseAbsoluteToLocal} from "@internationalized/date";

export default function App() {
  return (
    <div className="w-full max-w-xl flex flex-col items-end gap-4">
      <DateInput
        defaultValue={parseZonedDateTime("2022-11-07T00:45[America/Los_Angeles]")}
        label={"Event date"}
        labelPlacement="outside"
      />
      <DateInput
        defaultValue={parseAbsoluteToLocal("2021-11-07T07:45:00Z")}
        label={"Event date"}
        labelPlacement="outside"
      />
    </div>
  );
}
