• Resolved Devgun

    (@devgun)


    Everything is working fine except the date of posting the new job. I added new job from wp admin dashboard and then published it.
    In the Job listing page/ Job page, the date of job published shows wrong date. It shows “Posted 44 years ago”.
    This wrong date appears in each job.

    The date and time settings in my wordpress is fine (according to my country, i.e. +5.30)

    Can someone help to fix it.

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Devgun

    (@devgun)

    Please see a screenshot here – https://tinyurl.com/qc7ur7n
    I need to fix it urgent.

    Thread Starter Devgun

    (@devgun)

    Finally I fixed it by editing the php code of the plugin.
    Actually it is plugin conflict (I guess so). I have one more plugin “DW Q&A” so when I disable this plugin, the date/time reflect perfect in WP Job Manager but since both plugins are important to me, I can’t disable any one of them, so I made changes in WP Job Manager’s code.

    I would request Mike to see the changes I have made (to point what I am doing is OK or not)
    I have edited – content-single-job_listing.php
    <date><?php echo human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) . ' ' . __( 'ago', 'job_manager' ); ?></date>
    TO
    <date><?php echo human_time_diff( get_post_time( 'U' ), current_time( 'timestamp' ) ) . ' ' . __( 'ago', 'job_manager' ); ?></date>
    similarly I have made same changes in – content-summary-job_listing.php And content-job_listing.php
    After making the changes, the job’s posting date/ time is showing the accurate one (such as – Posted 10 minutes ago instead of Posted 44 years ago).

    Please Mike suggest me, is the changes I made is fine.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Strange, both functions are virtually the same.

    I’ll update the plugin.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shows wrong posting date – "Posted 44 years ago"’ is closed to new replies.