?
Related to # 4508
avatar schnuti
schnuti
10 Oct 2014

Steps to reproduce the issue

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

  1. The actual user date and time shown or
  2. 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();
}

avatar schnuti schnuti - open - 10 Oct 2014
avatar gunjanpatel
gunjanpatel - comment - 10 Oct 2014

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.

avatar schnuti
schnuti - comment - 10 Oct 2014

Created the PR #4508 with the fix.

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4505.

avatar zero-24 zero-24 - close - 11 Oct 2014
avatar Bakual
Bakual - comment - 11 Oct 2014

Closing this issue since we have a PR. Please use the PR for further comments.

avatar Bakual Bakual - close - 11 Oct 2014
avatar Bakual Bakual - change - 11 Oct 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-10-11 08:13:21
avatar brianteeman brianteeman - change - 17 Oct 2014
Rel_Number 4508
Relation Type Related to
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment