View Single Post
Posts: 197 | Thanked: 101 times | Joined on Dec 2009 @ Netherlands
#114
The durations are still printed using AM/PM format. The follwong change fixes that:

Code:
--- main.py.org 2010-08-21 12:07:23.000000000 +0200
+++ main.py     2010-08-21 13:18:25.000000000 +0200
@@ -725,7 +725,7 @@                                                                                                                           
 #        diff_tuple=Seconds2Tuple(diff_sec)                                                                                                  
 #        print diff_tuple,  records.StartTime_tuple,  EndTime_tuple                                                                          
 #        diff=strftime("%H:%M:%S", diff_tuple)                                                                                               
-        diff=time.strftime("%X", time.gmtime(diff_sec))                                                                                      
+        diff=time.strftime("%H:%M:%S", time.gmtime(diff_sec))                                                                                
         if(diff_sec>86400): d="1 day, " #longer than 24h                                                                                     
         else: d=""                                                                                                                           
         self.ui.lblTimes.setText(str(d0)+"  -  "+str(d1)+"  (Duration: "+d+str(diff)+")")                                                    
@@ -1157,7 +1157,7 @@                                                                           
             d1=strftime("%a. %d.%m.%Y  %H:%M:%S", EndTime_tuple)                         
                                                                                          
         diff_sec=records.Index*records.Sampling_interval*records.Value_smoothing/1000    
-        diff=time.strftime("%X", time.gmtime(diff_sec))                                  
+        diff=time.strftime("%H:%M:%S", time.gmtime(diff_sec))                            
                                                                                          
         if(diff_sec>86400): diff="1 day, "+diff #longer than 24h