Skip to content

Commit 0aac59e

Browse files
committed
use now for chart
1 parent 793eec0 commit 0aac59e

File tree

1 file changed

+1
-3
lines changed
  • metadata-ingestion/src/datahub/ingestion/source

1 file changed

+1
-3
lines changed

metadata-ingestion/src/datahub/ingestion/source/superset.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -518,10 +518,8 @@ def construct_chart_from_chart_data(self, chart_data: dict) -> ChartSnapshot:
518518

519519
modified_actor = f"urn:li:corpuser:{self.owner_info.get((chart_data.get('changed_by') or {}).get('id', -1), 'unknown')}"
520520

521-
now = datetime.now().strftime("%I:%M%p on %B %d, %Y")
522-
523521
modified_ts = int(
524-
dp.parse(chart_data.get("changed_on", now)).timestamp() * 1000
522+
dp.parse(datetime.now().strftime("%I:%M%p on %B %d, %Y")).timestamp() * 1000
525523
)
526524
title = chart_data.get("slice_name", "")
527525

0 commit comments

Comments
 (0)