Auction Times

  • James
    James
    Senior Member
     
    198 points

    I’ve set up several listing plans in AP Version 4.6 like 1 day, 3 day, 7 day etc.. I have it set to have the admin approve listings first and when I approve it right after it is created all auction timers end 18 hours short of the chosen listing time.

    Example: The seller chooses a 3 Day listing and auction shows auction ends in (2 days 6 hours 10 min 60 seconds) How do I get this to work correctly?

    Thanks


    John
    John
    Newbie
     
    74 points

    Same problem over here.. We need a fix for this!


    Mark Fail
    Mark Fail
    Super Guru
     
    12,208 points

    This is todo with the server clock, you need to set your php server time the same as your expected local time.

    if you edit the functions.php in the main theme folder, i added a sample time zone there.


    Mark Fail
    Mark Fail
    Super Guru
     
    12,208 points

    If you open the functions.php file you see iv comments out the timezone;

    //date_default_timezone_set(‘Asia/Hong_Kong’);

    simply adjust this to your time zone and un-comment it.

    http://php.net/manual/en/function.date-default-timezone-set.php

    example;

    date_default_timezone_set(‘America/Los_Angeles’);


    James
    James
    Senior Member
     
    198 points

    I must be missing something here… I’ve set in the functions.php file

    date_default_timezone_set(‘America/Los_Angeles’);

    and in the admin backend under Settings >> General I have set timezone to Los Angeles still times are off. Now listings are ending 14 hours early ??


    James
    James
    Senior Member
     
    198 points

    sorry I meant to post some snips…

    Attachments:
    You must be logged in to view attached files.

    James
    James
    Senior Member
     
    198 points

    Ok so I contacted host for some help here and I have set in the functions.php file…

    date_default_timezone_set(‘America/Chicago’);

    then in the wp admin

    Timezone: Chicago

    and I am still having trouble with timer when I create a new listing. Let’s say a 1 day listing, it starts the auction off at 8 hours and 30 min… it’s missing 15 hours and 30 min ?


    James
    James
    Senior Member
     
    198 points

    I would really like to get this sorted asap. Host says time zones are set correctly may be a script problem. Mark can you take a look?

    Thanks


    Mark Fail
    Mark Fail
    Super Guru
     
    12,208 points

    send a ticket and ill check, not much i can do without seeing your setup.


    James
    James
    Senior Member
     
    198 points

    Mark thank you for getting that sorted for me 😀


    Kevin
    Kevin
    Newbie
     
    92 points

    I’m having the same problem… I matched my time zones in the editor and in my admin area. My server time is still 4 hours fast. Let me know what the outcome is, Mark. Perhaps I should open a ticket too?


Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.