The date time format can be chosen in application settings
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
<?php endif ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= dt('%B %e, %Y at %k:%M %p', $notification['date_creation']) ?>
|
||||
<?= $this->dt->datetime($notification['date_creation']) ?>
|
||||
</td>
|
||||
<td>
|
||||
<i class="fa fa-check fa-fw"></i>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<?php endif ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= dt('%B %e, %Y', $task['date_due']) ?>
|
||||
<?= $this->dt->date($task['date_due']) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<?php if (! empty($task['date_due'])): ?>
|
||||
<span class="task-board-date <?= time() > $task['date_due'] ? 'task-board-date-overdue' : '' ?>">
|
||||
<i class="fa fa-calendar"></i>
|
||||
<?= (date('Y') === date('Y', $task['date_due']) ? dt('%b %e', $task['date_due']) : dt('%b %e %Y', $task['date_due'])) ?>
|
||||
<?= $this->dt->date($task['date_due']) ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<?php if (! empty($comment['username'])): ?>
|
||||
<span class="comment-username"><?= $this->e($comment['name'] ?: $comment['username']) ?></span> @
|
||||
<?php endif ?>
|
||||
<span class="comment-date"><?= dt('%b %e, %Y, %k:%M %p', $comment['date_creation']) ?></span>
|
||||
<span class="comment-date"><?= $this->dt->datetime($comment['date_creation']) ?></span>
|
||||
</p>
|
||||
|
||||
<div class="comment-inner">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<span class="comment-username"><?= $this->e($comment['name'] ?: $comment['username']) ?></span> @
|
||||
<?php endif ?>
|
||||
|
||||
<span class="comment-date"><?= dt('%B %e, %Y at %k:%M %p', $comment['date_creation']) ?></span>
|
||||
<span class="comment-date"><?= $this->dt->datetime($comment['date_creation']) ?></span>
|
||||
</p>
|
||||
<div class="comment-inner">
|
||||
|
||||
|
||||
@@ -19,6 +19,12 @@
|
||||
<?= $this->form->select('application_date_format', $date_formats, $values, $errors) ?>
|
||||
<p class="form-help"><?= t('ISO format is always accepted, example: "%s" and "%s"', date('Y-m-d'), date('Y_m_d')) ?></p>
|
||||
|
||||
<?= $this->form->label(t('Date and time format'), 'application_datetime_format') ?>
|
||||
<?= $this->form->select('application_datetime_format', $datetime_formats, $values, $errors) ?>
|
||||
|
||||
<?= $this->form->label(t('Time format'), 'application_time_format') ?>
|
||||
<?= $this->form->select('application_time_format', $time_formats, $values, $errors) ?>
|
||||
|
||||
<?= $this->form->checkbox('password_reset', t('Enable "Forget Password"'), 1, $values['password_reset'] == 1) ?>
|
||||
|
||||
<?= $this->form->label(t('Custom Stylesheet'), 'application_stylesheet') ?>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<?php elseif ($this->text->contains($event['event_name'], 'comment')): ?>
|
||||
<i class="fa fa-comments-o"></i>
|
||||
<?php endif ?>
|
||||
<?= dt('%B %e, %Y at %k:%M %p', $event['date_creation']) ?>
|
||||
<?= $this->dt->datetime($event['date_creation']) ?>
|
||||
</p>
|
||||
<div class="activity-content"><?= $event['event_content'] ?></div>
|
||||
</div>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</div>
|
||||
<p>
|
||||
<?= $this->e($file['name']) ?>
|
||||
<span class="tooltip" title='<?= t('uploaded by: %s', $file['user_name'] ?: $file['username']).'<br>'.t('uploaded on: %s', dt('%B %e, %Y at %k:%M %p', $file['date'])).'<br>'.t('size: %s', $this->text->bytes($file['size'])) ?>'>
|
||||
<span class="tooltip" title='<?= t('uploaded by: %s', $file['user_name'] ?: $file['username']).'<br>'.t('uploaded on: %s', $this->dt->datetime($file['date'])).'<br>'.t('size: %s', $this->text->bytes($file['size'])) ?>'>
|
||||
<i class="fa fa-info-circle"></i>
|
||||
</span>
|
||||
</p>
|
||||
@@ -38,7 +38,7 @@
|
||||
<td><i class="fa <?= $this->file->icon($file['name']) ?> fa-fw"></i></td>
|
||||
<td>
|
||||
<?= $this->e($file['name']) ?>
|
||||
<span class="tooltip" title='<?= t('uploaded by: %s', $file['user_name'] ?: $file['username']).'<br>'.t('uploaded on: %s', dt('%B %e, %Y at %k:%M %p', $file['date'])).'<br>'.t('size: %s', $this->text->bytes($file['size'])) ?>'>
|
||||
<span class="tooltip" title='<?= t('uploaded by: %s', $file['user_name'] ?: $file['username']).'<br>'.t('uploaded on: %s', $this->dt->datetime($file['date'])).'<br>'.t('size: %s', $this->text->bytes($file['size'])) ?>'>
|
||||
<i class="fa fa-info-circle"></i>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<?php endif ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= dt('%B %e, %Y', $task['date_due']) ?>
|
||||
<?= $this->dt->date($task['date_due']) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($task['is_active'] == \Kanboard\Model\Task::STATUS_OPEN): ?>
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<?= dt('Created on %B %e, %Y at %k:%M %p', $task['date_creation']) ?>
|
||||
<?= t('Created:').' '.$this->dt->datetime($task['date_creation']) ?>
|
||||
</li>
|
||||
<?php if ($task['date_due']): ?>
|
||||
<li>
|
||||
<strong><?= dt('Must be done before %B %e, %Y', $task['date_due']) ?></strong>
|
||||
<strong><?= t('Due date:').' '.$this->dt->date($task['date_due']) ?></strong>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php if (! empty($task['creator_username'])): ?>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<?php else: ?>
|
||||
<?= $this->e($task['title']) ?>
|
||||
<?php endif ?>
|
||||
(<?= dt('%B %e, %Y', $task['date_due']) ?>)
|
||||
(<?= $this->dt->date($task['date_due']) ?>)
|
||||
<?php if ($task['assignee_username']): ?>
|
||||
(<strong><?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?></strong>)
|
||||
<?php endif ?>
|
||||
|
||||
@@ -57,10 +57,10 @@
|
||||
<?= $this->url->link($this->e($project['name']), 'project', 'show', array('project_id' => $project['id'])) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $project['start_date'] ?>
|
||||
<?= $this->dt->date($project['start_date']) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $project['end_date'] ?>
|
||||
<?= $this->dt->date($project['end_date']) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($project['owner_id'] > 0): ?>
|
||||
|
||||
@@ -21,15 +21,15 @@
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($project['last_modified']): ?>
|
||||
<li><?= dt('Last modified on %B %e, %Y at %k:%M %p', $project['last_modified']) ?></li>
|
||||
<li><?= t('Modified:').' '.$this->dt->datetime($project['last_modified']) ?></li>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($project['start_date']): ?>
|
||||
<li><?= t('Start date: %s', $project['start_date']) ?></li>
|
||||
<li><?= t('Start date: ').$this->dt->date($project['start_date']) ?></li>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($project['end_date']): ?>
|
||||
<li><?= t('End date: %s', $project['end_date']) ?></li>
|
||||
<li><?= t('End date: ').$this->dt->date($project['end_date']) ?></li>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($stats['nb_tasks'] > 0): ?>
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
<?php endif ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= dt('%B %e, %Y', $task['date_started']) ?>
|
||||
<?= $this->dt->date($task['date_started']) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= dt('%B %e, %Y', $task['date_due']) ?>
|
||||
<?= $this->dt->date($task['date_due']) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<?php endif ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= dt('%B %e, %Y', $task['date_due']) ?>
|
||||
<?= $this->dt->date($task['date_due']) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($task['is_active'] == \Kanboard\Model\Task::STATUS_OPEN): ?>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
if (empty($task['date_due'])) {
|
||||
echo '<li>'.t('The due date have been removed').'</li>';
|
||||
} else {
|
||||
echo '<li>'.dt('New due date: %B %e, %Y', $task['date_due']).'</li>';
|
||||
echo '<li>'.t('New due date: ').$this->dt->date($task['date_due']).'</li>';
|
||||
}
|
||||
break;
|
||||
case 'description':
|
||||
@@ -56,7 +56,7 @@
|
||||
break;
|
||||
case 'date_started':
|
||||
if ($value != 0) {
|
||||
echo '<li>'.dt('Start date changed: %B %e, %Y', $task['date_started']).'</li>';
|
||||
echo '<li>'.t('Start date changed: ').$this->dt->datetime($task['date_started']).'</li>';
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
<?php if ($task['date_due']): ?>
|
||||
<li>
|
||||
<strong><?= t('Due date:') ?></strong>
|
||||
<span><?= dt('%B %e, %Y', $task['date_due']) ?></span>
|
||||
<span><?= $this->dt->date($task['date_due']) ?></span>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php if ($task['time_estimated']): ?>
|
||||
@@ -100,28 +100,28 @@
|
||||
<ul class="no-bullet">
|
||||
<li>
|
||||
<strong><?= t('Created:') ?></strong>
|
||||
<span><?= dt('%B %e, %Y at %k:%M %p', $task['date_creation']) ?></span>
|
||||
<span><?= $this->dt->datetime($task['date_creation']) ?></span>
|
||||
</li>
|
||||
<li>
|
||||
<strong><?= t('Modified:') ?></strong>
|
||||
<span><?= dt('%B %e, %Y at %k:%M %p', $task['date_modification']) ?></span>
|
||||
<span><?= $this->dt->datetime($task['date_modification']) ?></span>
|
||||
</li>
|
||||
<?php if ($task['date_completed']): ?>
|
||||
<li>
|
||||
<strong><?= t('Completed:') ?></strong>
|
||||
<span><?= dt('%B %e, %Y at %k:%M %p', $task['date_completed']) ?></span>
|
||||
<span><?= $this->dt->datetime($task['date_completed']) ?></span>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php if ($task['date_started']): ?>
|
||||
<li>
|
||||
<strong><?= t('Started:') ?></strong>
|
||||
<span><?= dt('%B %e, %Y at %k:%M %p', $task['date_started']) ?></span>
|
||||
<span><?= $this->dt->datetime($task['date_started']) ?></span>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php if ($task['date_moved']): ?>
|
||||
<li>
|
||||
<strong><?= t('Moved:') ?></strong>
|
||||
<span><?= dt('%B %e, %Y at %k:%M %p', $task['date_moved']) ?></span>
|
||||
<span><?= $this->dt->datetime($task['date_moved']) ?></span>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
<tr>
|
||||
<td><?= $this->url->link($this->e($record['user_fullname'] ?: $record['username']), 'user', 'show', array('user_id' => $record['user_id'])) ?></td>
|
||||
<td><?= t($record['subtask_title']) ?></td>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $record['start']) ?></td>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $record['end']) ?></td>
|
||||
<td><?= $this->dt->datetime($record['start']) ?></td>
|
||||
<td><?= $this->dt->datetime($record['end']) ?></td>
|
||||
<td><?= n($record['time_spent']).' '.t('hours') ?></td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</tr>
|
||||
<?php foreach ($transitions as $transition): ?>
|
||||
<tr>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $transition['date']) ?></td>
|
||||
<td><?= $this->dt->datetime($transition['date']) ?></td>
|
||||
<td><?= $this->e($transition['src_column']) ?></td>
|
||||
<td><?= $this->e($transition['dst_column']) ?></td>
|
||||
<td><?= $this->url->link($this->e($transition['name'] ?: $transition['username']), 'user', 'show', array('user_id' => $transition['user_id'])) ?></td>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<?= $this->e($link['creator_name'] ?: $link['creator_username']) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= dt('%B %e, %Y', $link['date_creation']) ?>
|
||||
<?= $this->dt->date($link['date_creation']) ?>
|
||||
</td>
|
||||
<?php if ($this->user->hasProjectAccess('TaskExternalLink', 'edit', $task['project_id'])): ?>
|
||||
<td>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</tr>
|
||||
<?php foreach ($last_logins as $login): ?>
|
||||
<tr>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $login['date_creation']) ?></td>
|
||||
<td><?= $this->dt->datetime($login['date_creation']) ?></td>
|
||||
<td><?= $this->e($login['auth_type']) ?></td>
|
||||
<td><?= $this->e($login['ip']) ?></td>
|
||||
<td><?= $this->e($login['user_agent']) ?></td>
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
</tr>
|
||||
<?php foreach ($tokens as $token): ?>
|
||||
<tr>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $token['date_creation']) ?></td>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $token['date_expiration']) ?></td>
|
||||
<td><?= $this->dt->datetime($token['date_creation']) ?></td>
|
||||
<td><?= $this->dt->datetime($token['date_expiration']) ?></td>
|
||||
<td><?= $token['is_active'] == 0 ? t('No') : t('Yes') ?></td>
|
||||
<td><?= $this->e($token['ip']) ?></td>
|
||||
<td><?= $this->e($token['user_agent']) ?></td>
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
</tr>
|
||||
<?php foreach ($sessions as $session): ?>
|
||||
<tr>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $session['date_creation']) ?></td>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $session['expiration']) ?></td>
|
||||
<td><?= $this->dt->datetime($session['date_creation']) ?></td>
|
||||
<td><?= $this->dt->datetime($session['expiration']) ?></td>
|
||||
<td><?= $this->e($session['ip']) ?></td>
|
||||
<td><?= $this->e($session['user_agent']) ?></td>
|
||||
<td><?= $this->url->link(t('Remove'), 'User', 'removeSession', array('user_id' => $user['id'], 'id' => $session['id']), true) ?></td>
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
<tr>
|
||||
<td><?= $this->url->link($this->e($record['task_title']), 'task', 'show', array('project_id' => $record['project_id'], 'task_id' => $record['task_id'])) ?></td>
|
||||
<td><?= $this->url->link($this->e($record['subtask_title']), 'task', 'show', array('project_id' => $record['project_id'], 'task_id' => $record['task_id'])) ?></td>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $record['start']) ?></td>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $record['end']) ?></td>
|
||||
<td><?= $this->dt->datetime($record['start']) ?></td>
|
||||
<td><?= $this->dt->datetime($record['end']) ?></td>
|
||||
<td><?= n($record['time_spent']).' '.t('hours') ?></td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
|
||||
Reference in New Issue
Block a user