F

Improve date() or <xf:date> for templates or store custom field dates as unix timestamps to the day only

  • Thread starter Thread starter frm
  • Start date Start date

Visitor Greeting

Welcome to NullWarehouse.com... We are currently seeking Mod's and Contributors. If you wish to apply for a Mod position then please click on Members dropdown arrow, then click on Staff App and fill it out completely and submit it. If you want to be a Contributor then start contributing and we will have our eye on you and take notice, something great could come of it.

  • We have redone the forum. If you notice any issues or errors please open a Support Ticket under the Members dropdown and let us know.
F

frm

Guest

I suggest enhancing the date() template function to support PHP-style formatting, or modifying the <xf:date> conditional to include date and format attributes (while retaining time for where it's already used). This would allow it to recognize custom user field dates set in the format 2024-09-12, and format them as something like "September 12, 2024" or "Sep 12, 24", making them more consistent with other dates seen across XenForo

Referenced...

Read more

Continue reading...
 
Similar content Most view View more
Back
Top Bottom