fix timezone bug
This commit is contained in:
@@ -12,12 +12,18 @@
|
||||
<div class="card-body">
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<p><strong>主題:</strong> {{ spec.title }}</p>
|
||||
<p><strong>原結束日期:</strong> {{ spec.end_date.strftime('%Y-%m-%d') }}</p>
|
||||
|
||||
<p><strong>原結束日期:</strong> {{ spec.end_date|taiwan_date }}</p>
|
||||
<p><strong>展延次數:</strong>
|
||||
<span class="badge bg-info">{{ spec.extension_count }} / 2</span>
|
||||
<small class="text-muted ms-2">
|
||||
剩餘可展延次數: <strong>{{ 2 - spec.extension_count }}</strong> 次
|
||||
</small>
|
||||
</p>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="new_end_date" class="form-label"><strong>新的結束日期</strong></label>
|
||||
<input type="date" class="form-control" id="new_end_date" name="new_end_date"
|
||||
value="{{ default_new_end_date.strftime('%Y-%m-%d') }}" required>
|
||||
<input type="date" class="form-control" id="new_end_date" name="new_end_date"
|
||||
value="{{ default_new_end_date|taiwan_date }}" required>
|
||||
<div class="form-text">預設為原結束日期後一個月。</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user