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.
The date and time is wrongly calculated with the actual server date and time as basis.
Must use UTC+0 as basis.
J 3.3.6
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();
}
Created the PR #4508 with the fix.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4505.
Closing this issue since we have a PR. Please use the PR for further comments.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-11 08:13:21 |
Rel_Number | ⇒ | 4508 | |
Relation Type | ⇒ | Related to |
Labels |
Added:
?
|
Thanks @schnuti
Did you send PR or just referenced commit with this issue? Please paste PR id if you have sent already.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4505.