Skip to content

Dashboard expiration date format #2890

@Gnodesign

Description

@Gnodesign

Describe the bug
The expiration date format in the [job dashboard] is always in 'M d, Y' format despite the global WordPress date format setting. The problem lies in the date format being hardcoded:

public static function the_date( $job ) {
echo '<div>' . esc_html( wp_date( apply_filters( 'job_manager_get_dashboard_date_format', 'M d, Y' ), get_post_datetime( $job )->getTimestamp() ) ) . '</div>';
}

Expected behavior
Change date format based on global WordPress date format setting.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions