From 5ef8deab69147638d3b5567f9ad83adeeec8dd53 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Tue, 28 Jul 2020 11:18:59 -0400 Subject: [PATCH] Record timestamp creation refactored --- classes/class-log.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/classes/class-log.php b/classes/class-log.php index 072922f52..5a8860122 100644 --- a/classes/class-log.php +++ b/classes/class-log.php @@ -120,9 +120,6 @@ function ( $var ) { // Add user meta to Stream meta. $stream_meta['user_meta'] = $user_meta; - // Get the current time in milliseconds. - $iso_8601_extended_date = wp_stream_get_iso_8601_extended_date(); - if ( ! empty( $user->roles ) ) { $roles = array_values( $user->roles ); $role = $roles[0]; @@ -138,7 +135,7 @@ function ( $var ) { 'blog_id' => (int) apply_filters( 'wp_stream_blog_id_logged', get_current_blog_id() ), 'user_id' => (int) $user_id, 'user_role' => (string) $role, - 'created' => (string) $iso_8601_extended_date, + 'created' => (string) current_time( 'mysql', true ), 'summary' => (string) vsprintf( $message, $args ), 'connector' => (string) $connector, 'context' => (string) $context,