@@ -950,7 +950,9 @@ async def _run_adk_user_simulation(
950950 {
951951 "author" : "user" ,
952952 "content" : invocation .user_content .model_dump (mode = "json" ),
953- "event_time" : invocation .creation_timestamp ,
953+ "event_time" : datetime .fromtimestamp (
954+ invocation .creation_timestamp , tz = timezone .utc
955+ ),
954956 }
955957 )
956958 if invocation .intermediate_data :
@@ -967,7 +969,9 @@ async def _run_adk_user_simulation(
967969 if ie .content
968970 else None
969971 ),
970- "event_time" : invocation .creation_timestamp ,
972+ "event_time" : datetime .fromtimestamp (
973+ invocation .creation_timestamp , tz = timezone .utc
974+ ),
971975 }
972976 )
973977 elif hasattr (invocation .intermediate_data , "tool_uses" ):
@@ -976,7 +980,9 @@ async def _run_adk_user_simulation(
976980 {
977981 "author" : "tool_call" ,
978982 "content" : tool_call .model_dump (mode = "json" ),
979- "event_time" : invocation .creation_timestamp ,
983+ "event_time" : datetime .fromtimestamp (
984+ invocation .creation_timestamp , tz = timezone .utc
985+ ),
980986 }
981987 )
982988
@@ -985,7 +991,9 @@ async def _run_adk_user_simulation(
985991 {
986992 "author" : "agent" ,
987993 "content" : invocation .final_response .model_dump (mode = "json" ),
988- "event_time" : invocation .creation_timestamp ,
994+ "event_time" : datetime .fromtimestamp (
995+ invocation .creation_timestamp , tz = timezone .utc
996+ ),
989997 }
990998 )
991999
0 commit comments