| @@ -46,9 +46,9 @@ | ||
| 46 | 46 | $telemetry = metasync_telemetry(); |
| 47 | 47 | |
| 48 | 48 | try { |
| 49 | 49 | // Create a test exception |
| 50 | - throw new Exception($message . ' - Test Exception at ' . date('Y-m-d H:i:s')); | |
| 50 | + throw new Exception($message . ' - Test Exception at ' . gmdate('Y-m-d H:i:s')); | |
| 51 | 51 | } catch (Exception $e) { |
| 52 | 52 | $telemetry->send_exception($e, array( |
| 53 | 53 | 'test' => true, |
| 54 | 54 | 'source' => 'manual_test', |
| @@ -176,7 +176,7 @@ | ||
| 176 | 176 | echo "</div>"; |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | // Auto-display instructions if called directly via admin |
| 180 | -if (isset($_GET['metasync_sentry_setup'])) { | |
| 180 | +if (isset($_GET['metasync_sentry_setup'])) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only flag to show setup instructions | |
| 181 | 181 | add_action('admin_notices', 'metasync_show_sentry_instructions'); |
| 182 | 182 | } |