For a calendar form field you set the default value to "NOW" and add a new item.
To test you can edit any form with a calendar field.
Expected result
The actual user date and time shown
or
The actual server date and time shown
depending on the filter used
Actual result
The date and time is wrongly calculated with the actual server date and time as basis.
Must use UTC+0 as basis.
System information (as much as possible)
J 3.3.6
Additional comments
PR on GitHub
calendar.php
// Handle the special case for "now".
if (strtoupper($this->value) == 'NOW')
{
//$this->value = strftime($format);
$this->value = JFactory::getDate()->toSql();
}
Thanks @mbabker
Based on the test by @schnuti (here: #4508 (comment)) and my own test I'm going to move this to RTC
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7753.