Always show "Track date only" shore execution times without the time part

This commit is contained in:
Bernd Bestel
2019-07-07 19:38:57 +02:00
parent 13c432b0cf
commit 6e3407b157
4 changed files with 12 additions and 5 deletions

View File

@@ -19,7 +19,8 @@ SELECT
WHEN period_config LIKE '%saturday%' THEN DATETIME(IFNULL(MAX(l.tracked_time), DATETIME('now', 'localtime')), '1 days', 'weekday 6')
END
WHEN 'monthly' THEN DATETIME(IFNULL(MAX(l.tracked_time), DATETIME('now', 'localtime')), '+1 month', 'start of month', '+' || CAST(h.period_days - 1 AS TEXT) || ' day')
END AS next_estimated_execution_time
END AS next_estimated_execution_time,
h.track_date_only
FROM chores h
LEFT JOIN chores_log l
ON h.id = l.chore_id