Skip to content

Commit 678d7bd

Browse files
committed
add now
1 parent e3b72fa commit 678d7bd

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,11 @@ def construct_dashboard_from_api_data(
401401
)
402402

403403
modified_actor = f"urn:li:corpuser:{self.owner_info.get((dashboard_data.get('changed_by') or {}).get('id', -1), 'unknown')}"
404+
405+
now = datetime.now().strftime("%I:%M%p on %B %d, %Y")
406+
404407
modified_ts = int(
405-
dp.parse(dashboard_data.get("changed_on_utc", "now")).timestamp() * 1000
408+
dp.parse(dashboard_data.get("changed_on", now)).timestamp() * 1000
406409
)
407410
title = dashboard_data.get("dashboard_title", "")
408411
# note: the API does not currently supply created_by usernames due to a bug

0 commit comments

Comments
 (0)