Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: sloth456 on December 16, 2010, 05:46:48 PM

Title: Manipulate post dates programmatically
Post by: sloth456 on December 16, 2010, 05:46:48 PM
Hi,

I've been using createPost() to make posts on my forum, however now I wish to manipulate the post dates attached to those posts.  createPost() does not seem to have a way to do this, is there any other function I can use?

Or can I simply run SQL UPDATE queries on the posterTime column in the smf_messages table without causing errors or problems in the long run?
Title: Re: Manipulate post dates programmatically
Post by: IceXaos on December 17, 2010, 01:04:48 AM
SQL UPDATE would work fine.  Not sure of a built-in function to do it for ya.
Title: Re: Manipulate post dates programmatically
Post by: sloth456 on December 17, 2010, 09:09:32 AM
Thanks for your help, I shall give it a go.