Fixed rome date format bug

This commit is contained in:
Gregorio Chiko Putra 2017-09-20 11:20:37 +07:00
parent 835b549166
commit 25bdaad2ed

View File

@ -13,7 +13,7 @@
<div class="stack"> <div class="stack">
<label>Dibuat pada: </label> <label>Dibuat pada: </label>
<span> <span>
{{ post.created_at|date("d-m-Y") }} {{ post.created_at|date("Y-m-d") }}
</span> </span>
</div> </div>
<div class="stack"> <div class="stack">
@ -28,7 +28,7 @@
{% if post.edited_at is empty %} {% if post.edited_at is empty %}
- -
{% else %} {% else %}
{{ post.edited_at|date("d-m-Y") }} {{ post.edited_at|date("Y-m-d") }}
{% endif %} {% endif %}
</span> </span>
<input type="hidden" name="edited_at" value="{{ timestamp }}"> <input type="hidden" name="edited_at" value="{{ timestamp }}">
@ -94,9 +94,9 @@
<label for="valid_at">Berlaku dari: </label> <label for="valid_at">Berlaku dari: </label>
</div> </div>
<div class="stack"> <div class="stack">
<input id="left" name="valid_at" value="{{ post.valid_at|date("d-m-Y") }}"> <input id="left" name="valid_at" value="{{ post.valid_at|date("Y-m-d") }}">
</div> </div>
<input type="hidden" name="old_valid_at" value="{{ post.valid_at|date("d-m-Y") }}"> <input type="hidden" name="old_valid_at" value="{{ post.valid_at|date("Y-m-d") }}">
</div> </div>
<div class="stack"> <div class="stack">
@ -104,9 +104,9 @@
<label for="expired_at">Berlaku sampai: </label> <label for="expired_at">Berlaku sampai: </label>
</div> </div>
<div class="stack"> <div class="stack">
<input id="right" name="expired_at" value="{{ post.expired_at|date("d-m-Y") }}"> <input id="right" name="expired_at" value="{{ post.expired_at|date("Y-m-d") }}">
</div> </div>
<input type="hidden" name="old_expired_at" value="{{ post.expired_at|date("d-m-Y") }}"> <input type="hidden" name="old_expired_at" value="{{ post.expired_at|date("Y-m-d") }}">
</div> </div>
<input type="hidden" name="_currts" value="{{ timestamp }}" disabled> <input type="hidden" name="_currts" value="{{ timestamp }}" disabled>