Comment Approved Notify Sent using GMT time, not local time
-
Folks, I was surprised to see a GMT time being shown when testing your plugin and looking at the edit comment to see your notification timestamp indicator.
I think people would prefer to see information in their local timezone as typically specified by WordPress settings.
public function approve_comment_callback( $comment ) {
…
update_comment_meta( $comment->comment_ID, ‘comment_approve_notify_sent’, current_time( ‘timestamp’, 1 ) );
…
}The current_time() call should use 0 for local time.
Thank you.
- The topic ‘Comment Approved Notify Sent using GMT time, not local time’ is closed to new replies.