You are here: Re: [SMARTY] date_format question « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] date_format question

Posted by Monte Ohrt on 01/04/05 17:15

Write a custom modifier to adjust your timestamp:

{$mytime|date_offset:"-2 hours"|date_format}


Travis Low wrote:

> Hello again. I had suggested the possibility of adding an offset to
> the date_format modifier. Messju suggested using setlocale(), which I
> agree with in principle, but I'm having trouble finding the definitive
> way to use setlocale() so that it works on the widest possible range
> of servers. (See http://us2.php.net/setlocale)
>
> Could I get a yes or no on whether the offset could be added to the
> date_format modifier? Seems to me it wouldn't hurt you if you chose
> to use setlocale(), but it would help you a lot if you didn't.
>
> If it's "no", could I please get some help generating a good drop-down
> list for input to setlocale()?
>
> Thanks!
>
> cheers,
>
> Travis
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация