Skip to content

Commit 35177d7

Browse files
authored
Merge pull request #575 from Soean/remove_duplicate
2 parents f67a582 + 1b9c57d commit 35177d7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Post_Command.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,6 @@ public function generate( $args, $assoc_args ) {
779779

780780
// Add time if the string is a valid date without time.
781781
$date = DateTime::createFromFormat( 'Y-m-d', $post_data['post_date'] );
782-
$date = DateTime::createFromFormat( 'Y-m-d', $post_data['post_date'] );
783782
if ( $date && $date->format( 'Y-m-d' ) === $post_data['post_date'] ) {
784783
$post_data['post_date'] .= ' 00:00:00';
785784
}

0 commit comments

Comments
 (0)