From 1ff97754afee87f23b17a6b036ebe9e69d41a7c6 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 24 Feb 2019 21:43:15 -0800 Subject: issues uncovered testing combined item/file import --- include/api_zot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/api_zot.php') diff --git a/include/api_zot.php b/include/api_zot.php index d2cadc9a4..b332aea71 100644 --- a/include/api_zot.php +++ b/include/api_zot.php @@ -95,9 +95,9 @@ if(! $_REQUEST['since']) $start = NULL_DATE; else { - $start = datetime_convert('UTC','UTC', $_REQUEST['since']); + $start = datetime_convert(date_default_timezone_get(),'UTC', $_REQUEST['since']); } - $finish = datetime_convert('UTC','UTC', (($_REQUEST['until']) ? $_REQUEST['until'] : 'now')); + $finish = datetime_convert(date_default_timezone_get(),'UTC', (($_REQUEST['until']) ? $_REQUEST['until'] : 'now')); json_return_and_die(channel_export_items_page(api_user(),$start,$finish,$page,$records)); } -- cgit v1.2.3