PLCOpenEditor.py
changeset 1718 703ddaf48b00
parent 1692 9cb4d1392baf
child 1730 64d8f52bc8c8
--- a/PLCOpenEditor.py	Wed Jul 05 13:11:45 2017 +0300
+++ b/PLCOpenEditor.py	Fri Jul 14 18:26:20 2017 +0300
@@ -485,7 +485,7 @@
                     if 'self' in exception_locals:
                         info['self'] = format_namespace(exception_locals['self'].__dict__)
 
-                output = open(path+os.sep+"bug_report_"+info['date'].replace(':','-').replace(' ','_')+".txt",'w')
+                output = open(path+os.sep+"bug_report_"+time.strftime("%Y_%m_%d__%H-%M-%S")+".txt",'w')
                 lst = info.keys()
                 lst.sort()
                 for a in lst: