Date format in theme?

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
dale
Regular
Posts: 14
Joined: Tue Feb 14, 2006 3:36 am
Contact:

Date format in theme?

Post by dale »

Hiya. I am trying to write a template (just experimenting with things). I have noticed that s9y seems to define the date format in the lang files. Is there any way I can override the definition through a template? Or is modification of the lang files the only way?

Thanks for helping out! :-)
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

You can modify the templates to achieve the same result. Most of the date entries are in entries.tpl. Find any place we call |@formatTime and change it to |@date_format with the parameters specified in the Smarty manual.

If you're feeling adventurous, you could try the Smarty parameters with the Serendipity formatTime modifier.
Judebert
---
Website | Wishlist | PayPal
dale
Regular
Posts: 14
Joined: Tue Feb 14, 2006 3:36 am
Contact:

Post by dale »

Thank you for the speedy reply. Your advice worked out nicely! :D
Post Reply