Super depressing questions, smarty's date_format function-php Tutorial

Source: Internet
Author: User
This is a very depressing problem. The smarty date_format function uploads a counter on the server redhat & nbsp; as4.0 and writes it using the smarty template. the display time is 116926-03-21 & nbsp; the correct time is. after several days of research, it seems that the date_format function of smarty cannot be used. if you forget to give me some advice, how can we fix it! ------ Solution ------- super depressing problem, smarty's date_format function
Upload a counter on the server redhat as4.0 and write it using the smarty template. the display time is 116926-03-21. the correct time is, after several days of research, it should be because the date_format function of smarty cannot be used. if you forget to give me some advice, how can we fix it!

------ Solution --------------------
In PHP, you need to convert it to the current timestamp.

Str2time
------ Solution --------------------
It's a timestamp problem! I also met !!
------ Solution --------------------
Let PHP deal with the time. do not engage in those things in the template.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.