Skip to content

Commit 50336be

Browse files
committed
fix: use bool instead of int for current_time() gmt parameter
1 parent 13658d0 commit 50336be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/wpgraphql-logging/src/Logger/Database/WordPressDatabaseEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function __construct(string $channel, int $level, string $level_name, str
8989
$this->extra = $this->sanitize_array_field( $extra );
9090

9191
// Set a default datetime for new, unsaved entries.
92-
$this->datetime = current_time( 'mysql', 1 );
92+
$this->datetime = current_time( 'mysql', true );
9393
}
9494

9595
/**

0 commit comments

Comments
 (0)