| @@ -120,9 +120,9 @@ | ||
| 120 | 120 | |
| 121 | 121 | global $wp_version; |
| 122 | 122 | |
| 123 | 123 | // $from = isset($data['display_from']) ? intval($data['display_from']) : 0; |
| 124 | - $from = date('Y-m-d H:i:s', Helper::generate_time_string($data)); | |
| 124 | + $from = gmdate('Y-m-d H:i:s', Helper::generate_time_string($data)); | |
| 125 | 125 | $needed = isset($data['display_last']) ? intval($data['display_last']) : 0; |
| 126 | 126 | |
| 127 | 127 | $args = [ |
| 128 | 128 | 'status' => 'approve', |
| @@ -274,8 +274,9 @@ | ||
| 274 | 274 | $trim_length = 100; |
| 275 | 275 | if ($settings['themes'] == 'comments_theme-seven-free' || $settings['themes'] == 'comments_theme-eight-free') { |
| 276 | 276 | $trim_length = 80; |
| 277 | 277 | } |
| 278 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context. | |
| 278 | 279 | $nx_trimmed_length = apply_filters('nx_text_trim_length', $trim_length, $settings); |
| 279 | 280 | $comment = $saved_data['post_comment']; |
| 280 | 281 | if (strlen($comment) > $nx_trimmed_length) { |
| 281 | 282 | $comment = substr($comment, 0, $nx_trimmed_length) . '...'; |