我遇到的使用场景是<input>默认为当前时间,代码如下:
<input>
<input name="starttime" id="starttime" type="text" class="input_245_34 fl" value="{$department['starttime']|default=time()|date='Y-m-d',###}">