stanley-king 2 năm trước cách đây
mục cha
commit
494e047f7a
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      plot/refill/PainterBase.py

+ 2 - 4
plot/refill/PainterBase.py

@@ -34,8 +34,8 @@ class PainterBase(object):
         if start_time is None:
             raise Exception('data is empty')
 
-        stime = lambda t: time.strftime('%d-%H:%M:%S', time.localtime(t))
-        logger.debug("near_stamp start_time %d , %s end_time=%s", start_time, stime(start_time), stime(end_time))
+        stime = lambda t: time.strftime('%y-%m-%d %H:%M:%S', time.localtime(t))
+        logger.debug("near_stamp start_time %d=%s end_time=%s", start_time, stime(start_time), stime(end_time))
 
         interval = calc_interval(start_time, end_time)
         start_time = time_border(interval, start_time, True)
@@ -43,8 +43,6 @@ class PainterBase(object):
         logger.debug("time_border start_time %d , %s end_time=%s", start_time, stime(start_time), stime(end_time))
 
         days = span_days(start_time, end_time)
-
-        stime = lambda t: time.strftime('%d-%H:%M:%S', time.localtime(t))
         sdays = [stime(day) for day in days]
         logger.debug(sdays)