aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-02-10 23:05:47 -0800
committerredmatrix <git@macgirvin.com>2016-02-10 23:05:47 -0800
commit83b5adf1944511cf8bd8ebd5523f8743f42da4be (patch)
tree95b8c648a8ba530a640a86bca969b4905e33525d /include/items.php
parenta26d1794fea354c9c90570c6cdbdceb733d47e13 (diff)
downloadvolse-hubzilla-83b5adf1944511cf8bd8ebd5523f8743f42da4be.tar.gz
volse-hubzilla-83b5adf1944511cf8bd8ebd5523f8743f42da4be.tar.bz2
volse-hubzilla-83b5adf1944511cf8bd8ebd5523f8743f42da4be.zip
feed dates are always UTC. This means we will need another mechanism to pass localised dates to items_fetch()
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 295bdb899..4d2f07a1e 100755
--- a/include/items.php
+++ b/include/items.php
@@ -4907,10 +4907,10 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C
}
if ($arr['datequery']) {
- $sql_extra3 .= protect_sprintf(sprintf(" AND item.created <= '%s' ", dbesc(datetime_convert(date_default_timezone_get(),'',$arr['datequery']))));
+ $sql_extra3 .= protect_sprintf(sprintf(" AND item.created <= '%s' ", dbesc(datetime_convert('UTC','UTC',$arr['datequery']))));
}
if ($arr['datequery2']) {
- $sql_extra3 .= protect_sprintf(sprintf(" AND item.created >= '%s' ", dbesc(datetime_convert(date_default_timezone_get(),'',$arr['datequery2']))));
+ $sql_extra3 .= protect_sprintf(sprintf(" AND item.created >= '%s' ", dbesc(datetime_convert('UTC','UTC',$arr['datequery2']))));
}
if(! array_key_exists('nouveau',$arr)) {