Skip to content

Commit

Permalink
revert datetime aware
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbrull committed Jun 6, 2024
1 parent dbcbba3 commit 2e45ce5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,7 @@ def build_dag_configs(ingestion_pipeline: IngestionPipeline) -> dict:
"""

if ingestion_pipeline.airflowConfig.startDate:
start_date = datetime.strptime(
ingestion_pipeline.airflowConfig.startDate.root, "%Y-%m-%dT%H:%M:%S.%fZ"
).replace(tzinfo=None)
start_date = ingestion_pipeline.airflowConfig.startDate.root
else:
start_date = datetime.now() - timedelta(days=1)

Expand Down

0 comments on commit 2e45ce5

Please sign in to comment.