Skip to content

Commit

Permalink
RSS: Correctly output 'datetime' string
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jan 10, 2023
1 parent 92a40bd commit 66359fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/rss/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function render_block_core_rss( $attributes ) {
if ( $date ) {
$date = sprintf(
'<time datetime="%1$s" class="wp-block-rss__item-publish-date">%2$s</time> ',
esc_attr( date_i18n( get_option( 'c' ), $date ) ),
esc_attr( date_i18n( 'c', $date ) ),
esc_attr( date_i18n( get_option( 'date_format' ), $date ) )
);
}
Expand Down

0 comments on commit 66359fc

Please sign in to comment.