Viewing 2 replies - 1 through 2 (of 2 total)
  • John

    (@johncharlton)

    Ditto for me.

    I have a site http://n100.ca/ with a deadline coming three months from today but the plugin says 2 months.

    I would also like it to read in days instead of months if possible.

    Here is what I did. Edit the plugin file ‘fergcorp_milestone.php asnd change lines 158-184 to

    public function calculate_units($eventDiff, $eventDate){
    
    //		if($eventDiff >= 31536000+date("L", $eventDate)*86400){
    //			$value = floor($eventDiff/(31536000+date("L", $eventDate)*86400));
    //			$unit = _n("year", "years",  $value, "fergcorp_milestone");
    //		}
    //		elseif($eventDiff >= 86400*date("t", $eventDate) ){
    //			$value = floor($eventDiff / ( 86400 * 30 ) );
    //			$unit = _n("month", "months",  $value, "fergcorp_milestone");
    //		}
    //		else
    		if($eventDiff >= 86400){
    			$value = floor($eventDiff/86400);
    			$unit = _n("day", "days",  $value, "fergcorp_milestone");
    		}
    //		elseif($eventDiff >= 3600){
    //			$value = floor($eventDiff/3600);
    //			$unit = _n("hour", "hours",  $value, "fergcorp_milestone");;
    //		}
    //		elseif($eventDiff >= 60){
    //			$value =  floor($eventDiff/60);
    //			$unit = _n("minute", "minutes",  $value, "fergcorp_milestone");;
    //		}
    //		else{
    //			$value = $eventDiff;
    //			$unit = _n("second", "seconds",  $value, "fergcorp_milestone");
    //		}

    that will cause it to just show in days

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Change output?’ is closed to new replies.