Skip to content

Commit

Permalink
correct syntax datetime.utc
Browse files Browse the repository at this point in the history
  • Loading branch information
floriscalkoen committed Nov 21, 2024
1 parent 27d547e commit a3da587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/python/stac_deltadtm.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def create_item(block, item_id, antimeridian_strategy=antimeridian.Strategy.SPLI

antimeridian.fix_item(item, antimeridian_strategy)

item.common_metadata.created = datetime.datetime.utcnow()
item.common_metadata.created = datetime.datetime.now(datetime.UTC)

ext = pystac.extensions.projection.ProjectionExtension.ext(
item, add_if_missing=True
Expand Down

0 comments on commit a3da587

Please sign in to comment.