How to change the format date of a group ?

OSSN USER Posted in General Discussion 6 years ago

Hi,

I would like to know how to change the format date of the groups.
I wish to pass of a format like "1 hour" to a format like "date/time"

I looked in the files of the component OssnGroups if i found a php code like

<?php echo ossn_user_friendly_time($params["post"]->time_created); ?>

but i didn't found anything.

Thanks

Replies
Dutch OSSN USER Replied 6 years ago

Ok thanks

Indonesian Arsalan Shah Replied 6 years ago

You need to write own code to utlize the timestamp, here $params[&quot;post&quot;]-&gt;time_created is a timestamp. For Example you can use timestamp like date("d/m/y", $params[&quot;post&quot;]-&gt;time_created);

which show you a date like day/month/year