Fix post date not in user locale

This commit is contained in:
grandeljay 2022-06-13 07:40:25 +02:00
parent e0b56d3296
commit 40ad582d5e

View file

@ -6,17 +6,19 @@
namespace wishthis;
$api = true;
ob_start();
$api = true;
require '../../index.php';
$response = array();
$dateFormatter = new \IntlDateFormatter(
'en_GB',
$user->locale,
\IntlDateFormatter::MEDIUM,
\IntlDateFormatter::NONE
);
ob_start();
require '../../index.php';
switch ($_SERVER['REQUEST_METHOD']) {
case 'GET':