Plugin Directory

Changeset 2055998


Ignore:
Timestamp:
03/23/2019 05:39:00 PM (7 years ago)
Author:
deller21
Message:

fix some bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • recobox/trunk/public/class-rcb-comments-public.php

    r2019500 r2055998  
    207207
    208208            if ($commentId) {
     209                $dateTime = new DateTime($comment['created_at']);
    209210                wp_update_comment([
    210211                    '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()),
    212215                ]);
    213216            }
Note: See TracChangeset for help on using the changeset viewer.