diff --git a/templates/content-episode.tpl.html b/templates/content-episode.tpl.html index 4920449..c3987c2 100644 --- a/templates/content-episode.tpl.html +++ b/templates/content-episode.tpl.html @@ -7,7 +7,7 @@ WITH episode_maxmin AS ( SELECT MAX(id) AS \'latest\', MIN(id) AS \'earliest\', ? AS \'id\' FROM eps - WHERE eps.date < date (\'now\', \'+1 days\') + WHERE eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY) ), episode_date AS ( SELECT eps.date @@ -26,7 +26,7 @@ FROM eps INNER JOIN episode_date ON eps.date > episode_date.date - WHERE eps.date < date (\'now\') + WHERE eps.date < NOW() ), comment_tallies AS ( SELECT diff --git a/templates/ids-episode.tpl.html b/templates/ids-episode.tpl.html index 1271a26..bd55bb0 100644 --- a/templates/ids-episode.tpl.html +++ b/templates/ids-episode.tpl.html @@ -1,7 +1,7 @@ ,