i have a code like this
if ($cronOdd['ends']<=$Maintime&&$cronOdd['status']=='Open'){
the rest of the code after just closes the Odd job and emails the poster that it has closed.
the $Maintime is gmdate("d-m-Y H:i:s");
the code above works fine for closing odd jobs within 2005 but now if someone has an end date that is 12-01-2006 12:22:23 for example. it closes it by if the day has reached (i figured out).
is there anyway this can be fixed with the current $Maintime as i use this to display the time aswel.
or is there a way where if i someone gave days (for example - >13) in 13 days time the odd job closes