Skip to content

stuck trying toZonedDateTimeISO #1224

@dimaqq

Description

@dimaqq
import {Temporal} from "proposal-temporal/lib/index.mjs";

...
  return (new Temporal.Instant(123)).toZonedDateTimeISO("Europe/Berlin");
// TypeError: cannot convert number to bigint

...
  return (new Temporal.Instant(BigInt(123))).toZonedDateTimeISO("Europe/Berlin");
// TypeError: use compare() or equals() to compare Temporal.ZonedDateTime

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions