@@ -401,11 +401,9 @@ def construct_dashboard_from_api_data(
401
401
)
402
402
403
403
modified_actor = f"urn:li:corpuser:{ self .owner_info .get ((dashboard_data .get ('changed_by' ) or {}).get ('id' , - 1 ), 'unknown' )} "
404
-
405
404
now = datetime .now ().strftime ("%I:%M%p on %B %d, %Y" )
406
-
407
405
modified_ts = int (
408
- dp .parse (dashboard_data .get ("changed_on " , now )).timestamp () * 1000
406
+ dp .parse (dashboard_data .get ("changed_on_utc " , now )).timestamp () * 1000
409
407
)
410
408
title = dashboard_data .get ("dashboard_title" , "" )
411
409
# note: the API does not currently supply created_by usernames due to a bug
@@ -517,9 +515,9 @@ def construct_chart_from_chart_data(self, chart_data: dict) -> ChartSnapshot:
517
515
)
518
516
519
517
modified_actor = f"urn:li:corpuser:{ self .owner_info .get ((chart_data .get ('changed_by' ) or {}).get ('id' , - 1 ), 'unknown' )} "
520
-
518
+ now = datetime . now (). strftime ( "%I:%M%p on %B %d, %Y" )
521
519
modified_ts = int (
522
- dp .parse (datetime . now (). strftime ( "%I:%M%p on %B %d, %Y" )).timestamp () * 1000
520
+ dp .parse (chart_data . get ( "changed_on_utc" , now )).timestamp () * 1000
523
521
)
524
522
title = chart_data .get ("slice_name" , "" )
525
523
@@ -786,11 +784,9 @@ def construct_dataset_from_dataset_data(
786
784
dataset_url = f"{ self .config .display_uri } { dataset_response .get ('result' , {}).get ('url' , '' )} "
787
785
788
786
modified_actor = f"urn:li:corpuser:{ self .owner_info .get ((dataset_data .get ('changed_by' ) or {}).get ('id' , - 1 ), 'unknown' )} "
789
-
790
787
now = datetime .now ().strftime ("%I:%M%p on %B %d, %Y" )
791
-
792
788
modified_ts = int (
793
- dp .parse (dataset_data .get ("changed_on " , now )).timestamp () * 1000
789
+ dp .parse (dataset_data .get ("changed_on_utc " , now )).timestamp () * 1000
794
790
)
795
791
last_modified = AuditStampClass (time = modified_ts , actor = modified_actor )
796
792
0 commit comments