Business hours timezone offset wrong

This topic contains 6 replies, has 3 voices, and was last updated by  Wanda Dunnet 4 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #495279

    Wanda Dunnet
    Full Member
    Post count: 18

    Hi

    When I create a listing the default timezone offset is different than the timezone set in the wordpress general settings.

    The website is set to Sydney time but the timezone offset shows +9 instead of +10 when I setup the business hours on a new listing.

    I can change the timezone in the wordpress setting to +10 and it will change the default timezone offset but then it wouldn’t change during daylight savings time.

    Kind regards

    #495280

    Wanda Dunnet
    Full Member
    Post count: 18
    This reply has been marked as private.
    #495281

    Wanda Dunnet
    Full Member
    Post count: 18

    Hi

    I have discovered that this issue only occurs when you are logged into an admin account.

    #495324

    Alex Rollin
    Moderator
    Post count: 27815
    #495994

    Wanda Dunnet
    Full Member
    Post count: 18

    Thanks for your reply.

    I have read through those posts and I don’t know if this is the same issue. I tried to used the code by Kiran (slightly modified to use +10 instead of +1) but I doesn’t seem to solve the issue.

    The timezone is set to Sydney time which never UTC+9. It is usually +10 and changes to +11 between Oct and Jul.

    When I’m logged in to a subscriber account the default is set +10 which is correct but when I login to any of the admin accounts and use the front end to add a listing it defaults to +9 and I have to remind everyone to change the default timezone when adding business hours.

    Is there anything I can do to fix this issue? I’m planning to hide the option to change the timezone but I can’t hide it if the admins will need to be able to change it whenever they use the front end.

    #496381

    Kiran
    Moderator
    Post count: 7069

    Hello Darrell,

    In business hours offset value is changed on change address. To use fixed offset +10, you can use PHP snippet provided by me at #483050.

    You can hide offset input from business hours by adding css: `

    
    
    
    .geodir_form_row .gd-bh-items .gd-tz-item {
    	display: none !important;
    }
    

    Let us know.

    Thanks,
    Kiran

    #496736

    Wanda Dunnet
    Full Member
    Post count: 18

    Thanks Kiran

    I have noticed that the offset does change to the correct number after you change the address.

    This has fixed my issue.

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket