File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1212from __future__ import annotations
1313
1414import contextlib
15+ import datetime
1516import importlib .machinery
1617import io
1718import json
@@ -190,7 +191,10 @@ def __enter__(self) -> None:
190191 "INSERT INTO metadata VALUES (?, ?)" ,
191192 ("functions_filter" , json .dumps (self .functions ) if self .functions else None ),
192193 )
193- cur .execute ("INSERT INTO metadata VALUES (?, ?)" , ("timestamp" , str (int (time .time ()))))
194+ cur .execute (
195+ "INSERT INTO metadata VALUES (?, ?)" ,
196+ ("timestamp" , datetime .datetime .now (datetime .timezone .utc ).isoformat ()),
197+ )
194198 cur .execute ("INSERT INTO metadata VALUES (?, ?)" , ("project_root" , str (self .project_root )))
195199 console .rule ("Codeflash: Traced Program Output Begin" , style = "bold blue" )
196200 frame = sys ._getframe (0 ) # Get this frame and simulate a call to it # noqa: SLF001
You can’t perform that action at this time.
0 commit comments