Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: xd4nt3x on March 26, 2008, 04:31:01 PM

Title: timeformat?
Post by: xd4nt3x on March 26, 2008, 04:31:01 PM
So i made a news module on my website that is attached to the SMF message database. But i need a converter for the poster time. For displaying the right form of the date. Can someone help?
Title: Re: timeformat?
Post by: karlbenson on March 26, 2008, 04:59:38 PM
if your using SMF SSI.

you should be able to use the smf function timeformat in subs.php
Title: Re: timeformat?
Post by: xd4nt3x on March 26, 2008, 05:17:42 PM
A tried ti figure it out but its to complex for me! :P Isn't there a simple script or something?
Title: Re: timeformat?
Post by: Rumbaar on March 29, 2008, 08:40:28 PM
If you are just taking the UNIX time stamp you can just convert it via time() date() php functions.