Skip to content

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

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.

3 participants