feat: add TZ timezone support for all displayed timestamps
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
<span class="badge bg-yellow-lt"><i class="ti ti-clock"></i> Pending</span>
|
||||
{{end}}
|
||||
</td>
|
||||
<td class="text-secondary">{{.CreatedAt.Format "2006-01-02 15:04"}}</td>
|
||||
<td class="text-secondary">{{formatTime .CreatedAt}}</td>
|
||||
{{if or (eq $.User.Role "admin") (eq $.User.Role "owner")}}
|
||||
<td>
|
||||
<div class="btn-list flex-nowrap">
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
{{range .AuditEntries}}
|
||||
<tr>
|
||||
<td class="text-secondary">
|
||||
<i class="ti ti-clock"></i> {{.CreatedAt.Format "2006-01-02 15:04:05"}}
|
||||
<i class="ti ti-clock"></i> {{formatDateTime .CreatedAt}}
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge bg-cyan-lt"><i class="ti ti-user"></i> {{.Username}}</span>
|
||||
|
||||
@@ -109,12 +109,12 @@
|
||||
{{if eq .Status "done"}}
|
||||
<span class="text-secondary">—</span>
|
||||
{{else}}
|
||||
{{.NextRun.Format "2006-01-02 15:04"}} <small class="text-secondary">UTC</small>
|
||||
{{formatTime .NextRun}}
|
||||
{{end}}
|
||||
</td>
|
||||
<td>
|
||||
{{if .LastRun}}
|
||||
{{.LastRun.Format "2006-01-02 15:04"}} <small class="text-secondary">UTC</small>
|
||||
{{formatTime .LastRun}}
|
||||
{{else}}
|
||||
<span class="text-secondary">never</span>
|
||||
{{end}}
|
||||
|
||||
@@ -202,7 +202,7 @@
|
||||
<div class="mb-3 schedule-option" id="sched-once" {{if ne $job.Schedule "once"}}style="display:none;"{{end}}>
|
||||
<label class="form-label required">Date & Time</label>
|
||||
<input type="datetime-local" name="scheduled_at" class="form-control" id="cron-scheduled-at"
|
||||
value="{{$job.ScheduledAt.Format "2006-01-02T15:04"}}">
|
||||
value="{{formatDateTimeLocal $job.ScheduledAt}}">
|
||||
<small class="form-hint">Select the exact date and time for this one-time job.</small>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -202,7 +202,7 @@
|
||||
<tbody>
|
||||
{{range .RecentAudit}}
|
||||
<tr>
|
||||
<td class="text-nowrap">{{.CreatedAt.Format "2006-01-02 15:04"}}</td>
|
||||
<td class="text-nowrap">{{formatTime .CreatedAt}}</td>
|
||||
<td>{{.Username}}</td>
|
||||
<td><span class="badge bg-secondary-lt">{{.Action}}</span></td>
|
||||
<td class="text-truncate" style="max-width: 300px;">{{.Details}}</td>
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
<span class="badge bg-danger-lt"><i class="ti ti-x"></i> Failed</span>
|
||||
{{end}}
|
||||
</td>
|
||||
<td>{{index . "deployed_at"}}</td>
|
||||
<td>{{formatDateTime (index . "deployed_at")}}</td>
|
||||
</tr>
|
||||
{{else}}
|
||||
<tr>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
</td>
|
||||
<td>{{.Bits}}</td>
|
||||
<td><code class="small">{{.Fingerprint}}</code></td>
|
||||
<td>{{.CreatedAt.Format "2006-01-02 15:04"}}</td>
|
||||
<td>{{formatTime .CreatedAt}}</td>
|
||||
<td>
|
||||
<div class="btn-list flex-nowrap">
|
||||
<button type="button" class="btn btn-sm btn-icon btn-outline-primary" title="View Public Key" onclick="showPublicKey({{.ID}}, '{{.Name}}')">
|
||||
@@ -89,7 +89,7 @@
|
||||
</td>
|
||||
<td>{{.Bits}}</td>
|
||||
<td><code class="small">{{.Fingerprint}}</code></td>
|
||||
<td>{{.CreatedAt.Format "2006-01-02 15:04"}}</td>
|
||||
<td>{{formatTime .CreatedAt}}</td>
|
||||
<td>
|
||||
<div class="btn-list flex-nowrap">
|
||||
<button type="button" class="btn btn-sm btn-icon btn-outline-primary" title="View Public Key" onclick="showPublicKey({{.ID}}, '{{.Name}}')">
|
||||
|
||||
@@ -66,6 +66,10 @@
|
||||
<div class="datagrid-title">Uptime</div>
|
||||
<div class="datagrid-content">{{.Uptime}}</div>
|
||||
</div>
|
||||
<div class="datagrid-item">
|
||||
<div class="datagrid-title">Timezone</div>
|
||||
<div class="datagrid-content">{{.Timezone}}</div>
|
||||
</div>
|
||||
<div class="datagrid-item">
|
||||
<div class="datagrid-title">Encryption</div>
|
||||
<div class="datagrid-content"><span class="badge bg-green-lt">AES-256-GCM</span></div>
|
||||
|
||||
@@ -60,12 +60,12 @@
|
||||
</td>
|
||||
<td class="text-secondary">
|
||||
{{if .LastLoginAt}}
|
||||
{{.LastLoginAt.Format "2006-01-02 15:04"}}
|
||||
{{formatTime .LastLoginAt}}
|
||||
{{else}}
|
||||
<span class="text-muted">Never</span>
|
||||
{{end}}
|
||||
</td>
|
||||
<td class="text-secondary">{{.CreatedAt.Format "2006-01-02 15:04"}}</td>
|
||||
<td class="text-secondary">{{formatTime .CreatedAt}}</td>
|
||||
<td>
|
||||
<div class="btn-list flex-nowrap">
|
||||
{{if .LockedUntil}}
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="me-3"><i class="ti ti-lock icon alert-icon"></i></div>
|
||||
<div class="flex-fill">
|
||||
<strong>Account locked</strong> until {{.EditUser.LockedUntil.Format "2006-01-02 15:04"}} ({{.EditUser.FailedLoginAttempts}} failed attempts)
|
||||
<strong>Account locked</strong> until {{formatTime .EditUser.LockedUntil}} ({{.EditUser.FailedLoginAttempts}} failed attempts)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user