You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Uncaught TypeError: Invalid argument for Temporal ........\v8\src\objects\js-temporal-objects.cc:2047
let zoned2 = zoned.with({hour: 10});
PlainDateTime.with works fine but ZonedDateTime does not
let plain = Temporal.PlainDateTime.from('2022-01-28T19:53+01:00[Europe/Berlin]');
let plain2 = plain.with({hour: 11});
let zoned = Temporal.ZonedDateTime.from('2022-01-28T19:53+01:00[Europe/Berlin]');
let zoned2 = zoned.with({hour: 10});
I'm guessing it just hasn't been implemented yet. If so then I will work around it for now.