We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be68915 commit 1c36198Copy full SHA for 1c36198
1 file changed
osl_visualizer/viewer.py
@@ -193,6 +193,9 @@ def save_osl_json_from_file(self, file_path):
193
logging.info("Save cancelled.")
194
return False
195
try:
196
+ from datetime import datetime
197
+
198
+ self.osl_data["date"] = datetime.now().strftime("%Y-%m-%d %H:%M")
199
with open(file_path, 'w') as f:
200
json.dump(self.osl_data, f, indent=2)
201
logging.info(f"Annotations saved to {file_path}")
0 commit comments