Skip to content

Commit

Permalink
Log timestamp as int (#36736)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimBroddin committed Apr 4, 2024
1 parent fef7260 commit 99e4241
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Store log timestamp as int
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Scheduled_Updates_Logs {
public static function log( $schedule_id, $action, $message = null, $context = null ) {
$timestamp = wp_date( 'U' );
$log_entry = array(
'timestamp' => $timestamp,
'timestamp' => intval( $timestamp ),
'action' => $action,
'message' => $message,
'context' => $context,
Expand Down

0 comments on commit 99e4241

Please sign in to comment.