RSS Feed/News Saving post date time failing randomly

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,664
Points
823

Reputation:

Working on an addon that ultimately saves a post date time for a new 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:
                        $replier->getPost()->set('post_date', ($thread->post_date + 315360), ['forceSet' => true]);
                        $post = $replier->save();

Continue reading...
 
Status
Not open for further replies.
Top