Skip to content
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

Serialize time extent using to_rfc3339() #21

Merged
merged 2 commits into from
Jan 13, 2025
Merged

Conversation

jacovdbergh
Copy link
Contributor

This PR changes serialization of the time extent to use the to_rfc3339() function instead of just to_string(), which I believe is in line with the OGC Features Core specification.

Before:

"interval": [
  [
    "2024-06-28 06:56:29 UTC",
    null
  ]
],

After:

"interval": [
  [
    "2024-06-28T06:56:29+00:00",
    null
  ]
],

Copy link
Member

@b4l b4l left a comment

Choose a reason for hiding this comment

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

Hi @jacovdbergh , thanks for the contribution! Just a minor nit. CI needs some love like the rest of the project. Maybe I will get around.

ogcapi-types/src/common/extent.rs Outdated Show resolved Hide resolved
@jacovdbergh
Copy link
Contributor Author

Thanks for having a look, I've resolved the issue.

@b4l b4l merged commit 266e4f6 into georust:main Jan 13, 2025
@b4l
Copy link
Member

b4l commented Jan 13, 2025

Thanks @jacovdbergh !

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