committed by
Frédéric Guillot
parent
136936ae3d
commit
daf39ee16a
@@ -44,7 +44,7 @@ class TaskOverdueNotificationCommand extends BaseCommand
|
||||
$rows[] = array(
|
||||
$task['id'],
|
||||
$task['title'],
|
||||
date('Y-m-d', $task['date_due']),
|
||||
date('Y-m-d H:i', $task['date_due']),
|
||||
$task['project_id'],
|
||||
$task['project_name'],
|
||||
$task['assignee_name'] ?: $task['assignee_username'],
|
||||
|
||||
@@ -208,7 +208,7 @@ class TaskHelper extends Base
|
||||
public function renderDueDateField(array $values, array $errors = array(), array $attributes = array())
|
||||
{
|
||||
$attributes = array_merge(array('tabindex="9"'), $attributes);
|
||||
return $this->helper->form->date(t('Due Date'), 'date_due', $values, $errors, $attributes);
|
||||
return $this->helper->form->datetime(t('Due Date'), 'date_due', $values, $errors, $attributes);
|
||||
}
|
||||
|
||||
public function renderPriority($priority)
|
||||
|
||||
@@ -124,7 +124,7 @@ class TaskImport extends Base
|
||||
}
|
||||
|
||||
if (! empty($row['date_due'])) {
|
||||
$values['date_due'] = $this->dateParser->getTimestampFromIsoFormat($row['date_due']);
|
||||
$values['date_due'] = $this->dateParser->getTimestamp($row['date_due']);
|
||||
}
|
||||
|
||||
$this->helper->model->removeEmptyFields(
|
||||
|
||||
@@ -58,7 +58,7 @@ class TaskCreationModel extends Base
|
||||
*/
|
||||
protected function prepare(array &$values)
|
||||
{
|
||||
$values = $this->dateParser->convert($values, array('date_due'));
|
||||
$values = $this->dateParser->convert($values, array('date_due'), true);
|
||||
$values = $this->dateParser->convert($values, array('date_started'), true);
|
||||
|
||||
$this->helper->model->removeFields($values, array('another_task', 'duplicate_multiple_projects'));
|
||||
|
||||
@@ -98,7 +98,7 @@ class TaskModificationModel extends Base
|
||||
*/
|
||||
protected function prepare(array &$values)
|
||||
{
|
||||
$values = $this->dateParser->convert($values, array('date_due'));
|
||||
$values = $this->dateParser->convert($values, array('date_due'), true);
|
||||
$values = $this->dateParser->convert($values, array('date_started'), true);
|
||||
|
||||
$this->helper->model->removeFields($values, array('id'));
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
<?php endif ?>
|
||||
">
|
||||
<i class="fa fa-calendar"></i>
|
||||
<?= $this->dt->date($task['date_due']) ?>
|
||||
<?= $this->dt->datetime($task['date_due']) ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</li>
|
||||
<?php if ($task['date_due']): ?>
|
||||
<li>
|
||||
<strong><?= t('Due date:').' '.$this->dt->date($task['date_due']) ?></strong>
|
||||
<strong><?= t('Due date:').' '.$this->dt->datetime($task['date_due']) ?></strong>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php if (! empty($task['creator_username'])): ?>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<?= $this->text->e($task['title']) ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
<td style="border: 1px solid #eee;"><?= $this->dt->date($task['date_due']) ?></td>
|
||||
<td style="border: 1px solid #eee;"><?= $this->dt->datetime($task['date_due']) ?></td>
|
||||
<td style="border: 1px solid #eee;"><?= $this->text->e($task['project_name']) ?></td>
|
||||
<td style="border: 1px solid #eee;">
|
||||
<?php if (! empty($task['assignee_username'])): ?>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<?= $this->dt->date($task['date_started']) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $this->dt->date($task['date_due']) ?>
|
||||
<?= $this->dt->datetime($task['date_due']) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
if (empty($task['date_due'])) {
|
||||
echo '<li>'.t('The due date have been removed').'</li>';
|
||||
} else {
|
||||
echo '<li>'.t('New due date: ').$this->dt->date($task['date_due']).'</li>';
|
||||
echo '<li>'.t('New due date: ').$this->dt->datetime($task['date_due']).'</li>';
|
||||
}
|
||||
break;
|
||||
case 'description':
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
<?php if ($task['date_due']): ?>
|
||||
<li>
|
||||
<strong><?= t('Due date:') ?></strong>
|
||||
<span><?= $this->dt->date($task['date_due']) ?></span>
|
||||
<span><?= $this->dt->datetime($task['date_due']) ?></span>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php if ($task['time_estimated']): ?>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<?php endif ?>
|
||||
">
|
||||
<i class="fa fa-calendar"></i>
|
||||
<?= $this->dt->date($task['date_due']) ?>
|
||||
<?= $this->dt->datetime($task['date_due']) ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</li>
|
||||
<?php if ($task['date_due']): ?>
|
||||
<li>
|
||||
<strong><?= t('Due date:').' '.$this->dt->date($task['date_due']) ?></strong>
|
||||
<strong><?= t('Due date:').' '.$this->dt->datetime($task['date_due']) ?></strong>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php if (! empty($task['creator_username'])): ?>
|
||||
|
||||
Reference in New Issue
Block a user