Skip to content

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Oct 29, 2020

This gets rid of a few instances of unnecessary Date parsing. In most cases we can just use the ISO8601 string directly, without having to convert to Date and back to a string all the time.

r? @locks

JS has no `DateWithoutTime` class, and using `Date` makes it unnecessarily complicated here, so we'll just keep it as a string and do the conversion only when needed.
This was only needed when the `date` attribute was still a `Date`, but now we can just use the strings directly
@locks
Copy link
Contributor

locks commented Oct 29, 2020

Thanks, that tidies it up nicely!

@bors r+

@bors
Copy link
Contributor

bors commented Oct 29, 2020

📌 Commit 2d85521 has been approved by locks

@bors
Copy link
Contributor

bors commented Oct 29, 2020

⌛ Testing commit 2d85521 with merge d4c3f8d...

@bors
Copy link
Contributor

bors commented Oct 29, 2020

☀️ Test successful - checks-travis
Approved by: locks
Pushing d4c3f8d to master...

@bors bors merged commit d4c3f8d into rust-lang:master Oct 29, 2020
@Turbo87 Turbo87 deleted the downloads-cleanup branch October 29, 2020 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants