Merge pull request #13539 from woocommerce/uses-gmdate-customer-last-update

Use GMT/UTC+0 when update customer last_update
This commit is contained in:
Mike Jolley 2017-03-10 12:24:02 +00:00 committed by GitHub
commit 320cf818a5
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ add_action( 'update_user_meta', 'wc_meta_update_last_update_time', 10, 4 );
* @param int $user_id The user to set a timestamp for.
*/
function wc_set_user_last_update_time( $user_id ) {
update_user_meta( $user_id, 'last_update', time() );
update_user_meta( $user_id, 'last_update', gmdate( 'U' ) );
}
/**