Skip to content

Commit

Permalink
Add note RE datetime format
Browse files Browse the repository at this point in the history
  • Loading branch information
ababic committed Feb 25, 2024
1 parent d3988f5 commit 114f8df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wagtail_bynder/management/commands/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def get_assets(self) -> Generator[dict[str, Any]]:
page = 1
while True:
query = {
# Datetimes must be supplied in ISO 8601 format without microseconds. See:
# https://bynder.docs.apiary.io/#reference/assets/asset-operations/retrieve-assets
"dateModified": self.date_modified_from.strftime("%Y-%m-%dT%H:%M:%SZ"),
"orderBy": "dateModified desc",
"page": page,
Expand Down

0 comments on commit 114f8df

Please sign in to comment.