summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2018-12-09 17:34:21 +0000
committerGogs <[email protected]>2018-12-09 17:34:21 +0000
commitbea6e81d911193f0bcc62c3710453f5a72e0305c (patch)
tree4b57280d25acda7ecf8f1f0f6f26ebed997fb801
parent6a6af964df3d1242b84872ea0c937cc655699c6c (diff)
parent3484ad2aafcd6f7804f5e9fc249af427a1b71ff7 (diff)
Merge branch 'iso-week' of suraia/tt-rss into master
-rwxr-xr-xclasses/feeds.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index c31f4b676..6a16cd85b 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -1698,7 +1698,7 @@ class Feeds extends Handler_Protected {
if (DB_TYPE == "pgsql") {
$sanity_interval_qpart = "date_entered >= NOW() - INTERVAL '1 hour' AND";
- $yyiw_qpart = "to_char(date_entered, 'YYYY-IW') AS yyiw";
+ $yyiw_qpart = "to_char(date_entered, 'IYYY-IW') AS yyiw";
} else {
$sanity_interval_qpart = "date_entered >= DATE_SUB(NOW(), INTERVAL 1 hour) AND";
$yyiw_qpart = "concat(year(date_entered),lpad(weekofyear(date_entered), 2, '0')) AS yyiw";