Saving post date time failing randomly

D

dethfire

Guest
Member
Working on an addon that ultimately saves a post date time for a message and it seems to work and fail randomly. Sometimes it will save using the new post date and sometimes it saves as the current date time. I can't figure it out.

Is this correct?

PHP:

Code:

Code:
                        $replier->getPost()->set('post_date', ($thread->post_date + 315360), ['forceSet' => true]);
                        $post = $replier->save();
Continue reading...

Continue reading...
 
BlackSpigot General Chat
Rules Help Users
    Dekomori @ Dekomori: Please be advised that downloading user-uploaded content comes with risks. The review system is...
    Top