Skip to content

Tests to ensure datetime JSON serialization stays the same #1222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 25, 2018

Conversation

algesten
Copy link
Contributor

@algesten algesten commented Jan 6, 2018

99c459b fixed the serialization to be RFC3339 compliant with the
timezone being represented as +00:00. This simply adds tests for the
structs where we use #[serde(with = "::util::rfc3339")] to ensure
the JSON representation of those dates stay the same.

Fixes #1164

99c459b fixed the serialization to be RFC3339 compliant with the
timezone being represented as `+00:00`. This simply adds tests for the
structs where we use `#[serde(with = "::util::rfc3339")]` to ensure
the JSON representation of those dates stay the same.

Fixes rust-lang#1164
@algesten
Copy link
Contributor Author

algesten commented Jan 6, 2018

It strikes me that we may want to broaden the scope and make tests for the serialized structures to ensure the entire JSON representation stays stable over time. This just targets the dates however.

@carols10cents
Copy link
Member

Thanks, this is a good start!! ❤️

bors: r+

bors-voyager bot added a commit that referenced this pull request Jan 25, 2018
1222: Tests to ensure datetime JSON serialization stays the same r=carols10cents

99c459b fixed the serialization to be RFC3339 compliant with the
timezone being represented as `+00:00`. This simply adds tests for the
structs where we use `#[serde(with = "::util::rfc3339")]` to ensure
the JSON representation of those dates stay the same.

Fixes #1164
@bors-voyager
Copy link
Contributor

bors-voyager bot commented Jan 25, 2018

Build succeeded

@bors-voyager bors-voyager bot merged commit 53d14d4 into rust-lang:master Jan 25, 2018
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.

Test timezone handling on backend
2 participants