Update templates/single-product/review.php

Replaced hard coded date format with get_option('date_format') so that date format from admin panel is used instead.

(woohoo, my first Github contribution :-))
This commit is contained in:
jorijnsmit 2012-11-19 21:43:11 +01:00
parent b226b38c0c
commit 02261e975c
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ global $post;
if ( woocommerce_customer_bought_product( $GLOBALS['comment']->comment_author_email, $GLOBALS['comment']->user_id, $post->ID ) )
echo '(' . __( 'verified owner', 'woocommerce' ) . ') ';
?>&ndash; <time itemprop="datePublished" time datetime="<?php echo get_comment_date('c'); ?>"><?php echo get_comment_date(__( 'M jS Y', 'woocommerce' )); ?></time>:
?>&ndash; <time itemprop="datePublished" time datetime="<?php echo get_comment_date('c'); ?>"><?php echo get_comment_date(__( get_option('date_format'), 'woocommerce' )); ?></time>:
</p>
<?php endif; ?>