ThinkPHP template formatting time problem I formatted the time HTMLcode on the template & lt; eqname & quot; vo. rectype & quot; value & quot; 1 & quot; & gt; {$ vo [recstart] | date & quot; Y-m-dH: I: s & quot ;, ###} & lt; eq & gt; & lt; eqname & quot; thinkPHP template formatting time
I format the time on the template
HTML code
{$vo['recstart']|date="Y-m-d H:i:s",###}
{$vo['recstart']|date="Y-m-d",###}
How to output
HTML code
1970-01-01
Why? Please ....
------ Solution --------------------
No, you can fix it.
------ Solution --------------------
Is the date () function so used? Not date ("Y-m-d H: I: s?
------ Solution --------------------
{$ Vo ['recstart']}
What is output?
------ Solution --------------------
The value of $ vo ['recstart'] is null or 0, resulting in the output time being 1970-01-01.
Check your background assignment.