From 6f95a33e67b8f9395bc0570307e94e8249727a41 Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Fri, 21 Oct 2022 22:53:13 -0400 Subject: [PATCH] Convert hpr rss queries from SQLite to MySQL --- templates/rss-query-hpr.tpl.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/rss-query-hpr.tpl.xml b/templates/rss-query-hpr.tpl.xml index 53e32c2..85443c8 100644 --- a/templates/rss-query-hpr.tpl.xml +++ b/templates/rss-query-hpr.tpl.xml @@ -3,7 +3,7 @@ SELECT eps.id, eps.explicit, - strftime(\'%H:%M:%S %d:%m:%Y\', date(eps.date)) AS date, + DATE_FORMAT(eps.date, \'%H:%i:%S %d:%m:%Y\') AS \'date\', eps.license, eps.duration, eps.title, eps.summary, eps.tags, eps.notes, @@ -14,7 +14,7 @@ FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN miniseries ON eps.series = miniseries.id - WHERE eps.date < date(\'now\', \'+1 days\') + WHERE eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY) ORDER BY eps.date DESC LIMIT 10 ')