Input.datetime fails the identity test

I found this Input behavior surprising and less than ideal: https://observablehq.com/d/a6be791f9c6adf03

Given a date (input), passing it to Date.datetime, and reading the Input return value (output), input.getTime() !== output.getTime().

What’s your approach to working around this?

Can you please make the notebook public?

whoops, yep! done :slight_smile:

It’s a timezone bug. Fix up here:

3 Likes