Use gmdate instead of date per coding standards

gmdate always returns a GMT date, so is not suspectible to runtime
timezone changes
This commit is contained in:
Josh Betz 2021-08-23 15:52:19 -05:00
parent f252f71b8d
commit 3434550083
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class WC_REST_Telemetry_V2_Controller extends WC_REST_Controller {
return array(
'platform' => sanitize_text_field( $platform ),
'version' => sanitize_text_field( $version ),
'last_used' => date( 'c' ),
'last_used' => gmdate( 'c' ),
);
}