From 1b9c57dad82aece3d6fc877972ca7d238ae1274c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20W=C3=BCnsch?= Date: Tue, 10 Feb 2026 14:48:30 +0100 Subject: [PATCH] Remove duplicate date parsing in Post_Command.php --- src/Post_Command.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Post_Command.php b/src/Post_Command.php index 8bf5250c4..3ef1f996d 100644 --- a/src/Post_Command.php +++ b/src/Post_Command.php @@ -779,7 +779,6 @@ public function generate( $args, $assoc_args ) { // Add time if the string is a valid date without time. $date = DateTime::createFromFormat( 'Y-m-d', $post_data['post_date'] ); - $date = DateTime::createFromFormat( 'Y-m-d', $post_data['post_date'] ); if ( $date && $date->format( 'Y-m-d' ) === $post_data['post_date'] ) { $post_data['post_date'] .= ' 00:00:00'; }