Skip to content

replace use of RFC339 constant with equivalent code #40

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 1 commit into from
Mar 2, 2022

Conversation

philvarner
Copy link
Collaborator

Related Issue(s):

  • n/a

Description:

replace use of RFC339 constant with equivalent code. That constant is both misnamed and no longer used in stac_pydantic, and may be removed in the future

PR Checklist:

  • Code is formatted and linted (run pre-commit run --all-files)
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable, and docs build successfully (run make docs)
  • Changes are added to the CHANGELOG, if applicable

@@ -104,7 +103,7 @@ def create_collection(self, model: stac_types.Collection, **kwargs):
def update_item(self, model: stac_types.Item, **kwargs):
"""Update item."""
base_url = str(kwargs["request"].base_url)
now = datetime.utcnow().strftime(DATETIME_RFC339)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm removing all the uses of DATETIME_RFC339 is stac-fastapi right now, and we can remove all the uses of it in this repo after that's done.

@philvarner philvarner requested a review from jonhealy1 March 2, 2022 05:13
@philvarner philvarner merged commit c5a6564 into main Mar 2, 2022
@philvarner philvarner deleted the pv/replace-use-of-RFC339 branch March 2, 2022 14:00
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