* Use isZeroDate function to check.

This commit is contained in:
wangyidong
2020-12-17 17:26:23 +08:00
parent d2783580cd
commit 04b16e05d0
12 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -48,7 +48,7 @@
</tr>
<tr>
<th class='w-90px'><?php echo $lang->task->realStarted;?></th>
<td class='w-p25-f'><div class='datepicker-wrapper datepicker-date'><?php echo html::input('realStarted', $task->realStarted == '0000-00-00 00:00:00' ? helper::now() : $task->realStarted, "class='form-control form-datetime' data-picker-position='bottom-right'");?></div></td>
<td class='w-p25-f'><div class='datepicker-wrapper datepicker-date'><?php echo html::input('realStarted', helper::isZeroDate($task->realStarted) ? helper::now() : $task->realStarted, "class='form-control form-datetime' data-picker-position='bottom-right'");?></div></td>
<td></td>
</tr>
<tr>