امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Working on an addon that ultimately saves a post date time for a new reply to a thread 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:
Is this correct?
PHP:
کد:
$replier->getPost()->set('post_date', ($thread->post_date + 315360), ['forceSet' => true]);
$post = $replier->save();
