diff --git a/bi/vas_yoy_flow.py b/bi/vas_yoy_flow.py index c8fea3b..d122303 100644 --- a/bi/vas_yoy_flow.py +++ b/bi/vas_yoy_flow.py @@ -44,7 +44,11 @@ class S: while last_time <= get_today_zero_time(): next_time = last_time + 300 flow = self.get_flow(zero_time, next_time) - self.insert_flow(get_time_str_by_ts(next_time), flow) + + dt = datetime.datetime.fromtimestamp(next_time) + formatted_dt = dt.strftime('%Y-%m-%d %H:%M:%S') + + self.insert_flow(formatted_dt, flow) print(get_time_str_by_ts(next_time), flow) last_time += 300