1
freakingid
Smarty date tag not working
  • 2005/8/26 14:34

  • freakingid

  • Just popping in

  • Posts: 10

  • Since: 2005/8/18


Howdy,

I'm having trouble with the following Smarty date tags returning nothing:

%l (this is to return the hour, in 12 hour format, and single digit hours have a space for the first digit)

%r (this is supposed to return the time in a.m. p.m. notation)

Again, when I use these tags in a template, I get nothing.
In the same template, I can put something like %H in place of %l and I do get the expected results (hour, in 12-hour format, with leading 0.)

Is this a known problem?
Is there perhaps something XOOPS is looking for and misinterpreting, i.e. not lettin the %l or %r through to Smarty?

Thanks.

2
WarDick
Re: Smarty date tag not working
  • 2005/8/26 14:43

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


Quote:
<{$smarty.now|date_format:"%A, %e %B %Y"}>


This works!
Urging XOOPS to be the Best It Can Be.
Richard......

Login

Who's Online

141 user(s) are online (91 user(s) are browsing Support Forums)


Members: 0


Guests: 141


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits