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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jacovdbergh
Copy link

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.

@@ -58,6 +58,25 @@ impl Default for TemporalExtent {
}
}

pub fn serialize_interval<S>(
Copy link
Member

Choose a reason for hiding this comment

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

Does this need to be public?

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