$tz = "Asia/Kolkata";
$date = JFactory::getDate('now',$tz);
print_r($date);
JDate Object
(
[tz:protected] => DateTimeZone Object
(
[timezone_type] => 3
[timezone] => Asia/Kolkata
)
[date] => 2017-05-10 14:46:15
[timezone_type] => 3
[timezone] => Asia/Kolkata
)
JDate Object
(
[tz:protected] => DateTimeZone Object
(
[timezone_type] => 3
[timezone] => Asia/Kolkata
)
[date] => 2017-05-10 08:46:15
[timezone_type] => 3
[timezone] => Asia/Kolkata
)
problem in JDate constructor
line no:114
$date = parent::createFromFormat('U.u', number_format(microtime(true), 6, '.', ''), $tz)->format('Y-m-d H:i:s.u');
its return wrong
Status | New | ⇒ | Information Required |
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-15 19:07:13 |
Closed_By | ⇒ | Bakual |
Can you try if #15853 fixes this?