diff --git a/includes/class-job-dashboard-shortcode.php b/includes/class-job-dashboard-shortcode.php index 1d58e5448..9ba967b18 100644 --- a/includes/class-job-dashboard-shortcode.php +++ b/includes/class-job-dashboard-shortcode.php @@ -594,14 +594,15 @@ public static function the_job_title( $job ) { } /** - * Show job title. + * Show the job date * * @param \WP_Post $job * * @output string */ public static function the_date( $job ) { - echo '
' . esc_html( wp_date( apply_filters( 'job_manager_get_dashboard_date_format', 'M d, Y' ), get_post_datetime( $job )->getTimestamp() ) ) . '
'; + $date_format = get_option( 'date_format' ) ?: 'M d, Y'; + echo '
' . esc_html( wp_date( apply_filters( 'job_manager_get_dashboard_date_format', $date_format ), get_post_datetime( $job )->getTimestamp() ) ) . '
'; } /**