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:
le="color: #000000"><?php <{php}> echo formatTimestamp(time()); <{/php}>