Skip to content

Commit cd0be30

Browse files
Fix timezones in the backuplist page
1 parent e71926f commit cd0be30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/backup_jobs.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h2>Backup Jobs</h2>
5656
</td>
5757
<td>
5858
{% if job.started_at %}
59-
{{ job.started_at.strftime('%Y-%m-%d %H:%M') }}
59+
{{ job.started_at | format_local_time('%Y-%m-%d %H:%M') }}
6060
{% else %}
6161
<span class="text-muted">Not started</span>
6262
{% endif %}
@@ -132,7 +132,7 @@ <h5 class="modal-title">
132132
<div class="modal-body">
133133
<h6>Repository: {{ job.repository.name }}</h6>
134134
<h6>Job ID: {{ job.id }}</h6>
135-
<h6>Date: {{ job.created_at.strftime('%Y-%m-%d %H:%M:%S') }}</h6>
135+
<h6>Date: {{ job.created_at | format_local_time('%Y-%m-%d %H:%M:%S') }}</h6>
136136
<hr>
137137
<h6>Error Message:</h6>
138138
<pre class="bg-light p-3 rounded">{{ job.error_message }}</pre>
@@ -158,7 +158,7 @@ <h5 class="modal-title">
158158
<div class="modal-body">
159159
<h6>Repository: {{ job.repository.name }}</h6>
160160
<h6>Job ID: {{ job.id }}</h6>
161-
<h6>Date: {{ job.created_at.strftime('%Y-%m-%d %H:%M:%S') }}</h6>
161+
<h6>Date: {{ job.created_at | format_local_time('%Y-%m-%d %H:%M:%S') }}</h6>
162162
<hr>
163163
<h6>Backup Path:</h6>
164164
<code>{{ job.backup_path }}</code>

0 commit comments

Comments
 (0)