Skip to content

Deserialize ISO-8601 dates ending in Z as UTC#191

Merged
rkorsak merged 1 commit intomainfrom
feature/deserialize-zulu-time
Sep 28, 2020
Merged

Deserialize ISO-8601 dates ending in Z as UTC#191
rkorsak merged 1 commit intomainfrom
feature/deserialize-zulu-time

Conversation

@rkorsak
Copy link
Copy Markdown
Contributor

@rkorsak rkorsak commented Sep 28, 2020

Issue

Fixes #187

Description

Updates deserialization to support the Z suffix in ISO-8601

Testing

Tests have been updated

Checklist

🚨Please review the guidelines for contributing to this repository.

  • 🤔 CONSIDER adding a unit test if your PR resolves an issue.
  • DO check open PR's to avoid duplicates.
  • DO keep pull requests small so they can be easily reviewed.
  • DO build locally before pushing.
  • DO make sure tests pass.
  • DO make sure any new changes are documented.
  • DO make sure not to introduce any compiler warnings.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

💚 Thank you!

to indicate UTC. For compatibility with more external clients, we
should allow it.
"""
tz_corrected = re.sub("Z$", "+00:00", value)
Copy link
Copy Markdown
Contributor

@keithrfung keithrfung Sep 28, 2020

Choose a reason for hiding this comment

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

Not my favorite, but this works for compatibility.

@rkorsak rkorsak merged commit fc2eba2 into main Sep 28, 2020
@rkorsak rkorsak deleted the feature/deserialize-zulu-time branch September 28, 2020 21:09
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.

✨ Deserialize ISO-8601 dates with Z

2 participants