Skip to content

Commit

Permalink
Fixed issue #12943: the default Start/Date time is shown everyone
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Nov 22, 2017
1 parent e35f7be commit 65185f1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -30,7 +30,7 @@
<?php Yii::app()->getController()->widget('yiiwheels.widgets.datetimepicker.WhDateTimePicker', array(
'name' => "startdate",
'id' => 'startdate',
'value' => date($dateformatdetails['phpdate']." H:i",strtotime($oSurvey->startdate)),
'value' => ($oSurvey->startdate ? date($dateformatdetails['phpdate']." H:i",strtotime($oSurvey->startdate)) : ''),
'pluginOptions' => array(
'format' => $dateformatdetails['jsdate'] . " HH:mm",
'allowInputToggle' =>true,
Expand Down

0 comments on commit 65185f1

Please sign in to comment.