Fix post date not in user locale
This commit is contained in:
parent
e0b56d3296
commit
40ad582d5e
1 changed files with 7 additions and 5 deletions
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue