Skip to content

Commit

Permalink
Record timestamp creation refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Jul 28, 2020
1 parent 94a85da commit 5ef8dea
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions classes/class-log.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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,
Expand Down

0 comments on commit 5ef8dea

Please sign in to comment.