Changeset 2055998
- Timestamp:
- 03/23/2019 05:39:00 PM (7 years ago)
- File:
-
- 1 edited
-
recobox/trunk/public/class-rcb-comments-public.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
recobox/trunk/public/class-rcb-comments-public.php
r2019500 r2055998 207 207 208 208 if ($commentId) { 209 $dateTime = new DateTime($comment['created_at']); 209 210 wp_update_comment([ 210 211 'comment_ID' => $commentId, 211 'comment_content' => isset($comment['text']) ? $comment['text'] : null 212 'comment_content' => isset($comment['text']) ? $comment['text'] : null, 213 'comment_date' => strftime("%Y-%m-%d %H:%M:%S", $dateTime->getTimestamp() + (get_option('gmt_offset') * 3600)), 214 'comment_date_gmt' => strftime("%Y-%m-%d %H:%M:%S", $dateTime->getTimestamp()), 212 215 ]); 213 216 }
Note: See TracChangeset
for help on using the changeset viewer.