This commit is contained in:
BoHung Chiu 2022-07-22 00:13:14 +08:00
parent ac0b619381
commit 22b451eb63
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@
</label>
</div>
</div>
<% data_format = (@event.all_day || @event.new_record?) ? 'yyyy/MM/dd' : 'yyyy/MM/dd hh:mm' %>
<% data_format = @event.all_day ? 'yyyy/MM/dd' : 'yyyy/MM/dd hh:mm' %>
<div class="control-group">
<%= f.label t("start_date"), :class=>"control-label" %>
<%#= f.datetime_select :start %>