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:
parent
f252f71b8d
commit
3434550083
|
@ -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' ),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue