• Is there any way of defaulting the publication date to the actual day of publication instead of 1970-01-01?
    It shows up on the feed so it isn’t valuable info.

    Thanks a lot

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gary Pendergast

    (@pento)

    Thanks for the bug report! I’ll release a fix for this in the next bugfix version.

    In the mean time, you can make this fix yourself, by opening admin-jobs.php, going to line 550, and swapping this code:

    $displaystartdate = date( 'Y-m-d H:i:s', strtotime( stripslashes( $_REQUEST['jobman-displaystartdate'] ) ) );
    if( empty( $displaystartdate ) )
    	$displaystartdate = date( 'Y-m-d H:i:s', strtotime( '-1 day' ) );

    for this:

    if( array_key_exists( 'jobman-displaystartdate', $_REQUEST ) && ! empty( $_REQUEST['jobman-displaystartdate'] ) )
    	$displaystartdate = date( 'Y-m-d H:i:s', strtotime( stripslashes( $_REQUEST['jobman-displaystartdate'] ) ) );
    else
    	$displaystartdate = date( 'Y-m-d H:i:s' );
    Thread Starter quentinio

    (@quentinio)

    Thanks a lot!
    On a side note had to change the last line to $displaystartdate = date( 'Y-m-d H:i:s', strtotime( '-9 hours' ) );
    to deal with local time / server time issues. Might help somebody!

    Plugin Author Gary Pendergast

    (@pento)

    I forget that some people don’t have their server timezone set to GMT. I’ll think of a way to make this work regardless of server timezone.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Job Manager] Publication date’ is closed to new replies.