diff --git a/theme/classes/walker.comments.php b/theme/classes/walker.comments.php index ec7b642..9a72106 100644 --- a/theme/classes/walker.comments.php +++ b/theme/classes/walker.comments.php @@ -16,7 +16,7 @@ class Windycoys_Walker_Comments extends Walker_Comment { $author_email = $comment->comment_author_email; $author = $comment->comment_author; $avatar = get_avatar($comment, 128); - $date = get_comment_date('jS F, Y', $id).' at '.get_comment_date('H:i', $id); + $date = get_comment_date(get_option('date_format'), $id).' at '.get_comment_date(get_option('time_format'), $id); $content = $comment->comment_content; $output .= '
  • '; $output .= '
    '; diff --git a/theme/front-page.php b/theme/front-page.php index fc178da..4e6e18e 100644 --- a/theme/front-page.php +++ b/theme/front-page.php @@ -15,7 +15,7 @@ $year = date('Y', $date); $month = date('F', $date); $day = date('jS', $date); - $date = get_the_date('jS F, Y', $post->ID).' at '.get_the_date('H:i', $post->ID); + $date = get_the_date(get_option('date_format'), $post->ID).' at '.get_the_date(get_option('time_format'), $post->ID); $content = (strlen($post->post_excerpt) === 0) ? strip_tags(substr($post->post_content, 0, 200)).'[...]' : $post->post_excerpt; diff --git a/theme/functions.php b/theme/functions.php index 3ad6fdc..10bb664 100644 --- a/theme/functions.php +++ b/theme/functions.php @@ -130,7 +130,7 @@ function windycoys_get_podcast_meta($id) { title => (String) $item->title, description => (String) $item->description, image => (String) $item->image['href'], - date => date('jS F, Y', $date).' at '.date('H:i', $date), + date => date(get_option('date_format'), $date).' at '.date(get_option('time_format'), $date), length => (String) $item->duration, url => (String) $item->link, audio => (String) $item->enclosure['url'], diff --git a/theme/search.php b/theme/search.php index 28579ba..1dc75c5 100644 --- a/theme/search.php +++ b/theme/search.php @@ -29,7 +29,7 @@ $results = $wp_query->found_posts; content => get_the_excerpt(), author => get_the_author_meta('nickname'), comments => get_comments_number(), - date => get_the_date('jS F, Y', $id) . ' at ' . get_the_date('H:i', $id), + date => get_the_date(get_option('date_format'), $id) . ' at ' . get_the_date(get_option('time_format'), $id), ); get_template_part('partials/excerpt') ?> diff --git a/theme/tag.php b/theme/tag.php index 34496c4..3a13451 100644 --- a/theme/tag.php +++ b/theme/tag.php @@ -18,7 +18,7 @@
      - +