Skip to content

Conversation

mbostock
Copy link
Member

Adopts https://github.com/mbostock/isoformat so that dates are always inspected as UTC (not local time). In particular, this ensures that the inspector matches Observable Inputs and Observable Plot.

Base automatically changed from mbostock/remove-husky to main September 24, 2021 04:22
@mbostock mbostock requested a review from visnup September 24, 2021 14:48
Copy link
Member

@visnup visnup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to easily see what the local time zone version would be in the inspector anymore? I'm assuming no and that's fine, just wondering.

@mbostock
Copy link
Member Author

Is there a way to easily see what the local time zone version would be in the inspector anymore?

No. You’d have to date.toLocaleString manually. We could make Inputs.table smarter with a timeZone option, though.

@mbostock mbostock merged commit 706ae29 into main Sep 24, 2021
@mbostock mbostock deleted the mbostock/utc-dates branch September 24, 2021 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants