1
kahumbu
Today's Date
  • 2003/10/13 20:54

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


Hello,

I would like to place today's date on the front page. Is there a Smarty tag I can use for this? I mean, is there a Smarty tag to get the date based on the Default Timezone, rather than the Server Timezone?

Thanks!

2
ackbarr
Re: Today's Date

There is no preset smarty tag available to do this, but smarty includes a mechanism to execute php, so that coupled with the formatTimestamp function (included in /includes/functions.php) should do the trick:
<{php}>
echo 
formatTimestamp(time());
<{/
php}>



Login

Who's Online

148 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 148


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