Results 1 to 2 of 2

Thread: Expiry Date Bug

  1. #1
    Thread Starter
    Rookie ssgupta's Avatar
    Join Date
    Apr 2009
    Location
    Russian Federation
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Expiry Date Bug

    Ad posted today (April 4 2009), set for expiry in 365 days, expiry date shows: 04/04/2040 4:16:37

  2. #2
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Expiry Date Bug

    Thanks for letting me know. Luckily the custom field called "expires" you are referring to is actually not being used....yet. I plan on having a count down timer for it in a later version.

    The bug will be fixed in the next release 2.8.2 but if you'd like to fix it in the meantime, here's what you do.

    Edit form_process.php and replace the following two lines

    Code:
    $tomorrow = mktime(date("G"),date("i"),date("s"),date("d")+$ad_length,date("m"),date("Y"));
    $expires = date("d/m/Y G:i:s", $tomorrow);
    with this line:

    Code:
    $expires = date('m/d/Y G:i:s', strtotime("+" . $ad_length . " days"));
    That will start saving the dates correctly.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)