|
@@ -1210,7 +1210,7 @@ class SmartSceneView(View):
|
|
|
condition['time'] = 'date'
|
|
|
# 根据时间戳和时区获取年月日,拼接由分钟转换出来的时间
|
|
|
time_string = CommonService.get_date_from_timestamp(now_time, tz)
|
|
|
- time_string = time_string[:time_string.index('')]
|
|
|
+ time_string = time_string[:time_string.index(' ')]
|
|
|
time_string += ' {:02d}:{:02d}:00'.format(hour, minute)
|
|
|
time_stamp = CommonService.convert_to_timestamp(tz, time_string)
|
|
|
if time_stamp < now_time:
|