• Resolved levanier

    (@levanier)


    When a customer select a date (or a date range), it’s not working properly.
    A wrong date ( in 1999) is selected instead.

    Steps to reproduce the issue :
    1) make a reservation for any date of your choice
    2) check in your e-mail the check-in date
    It should be wrong ( 30 november 1999 instead of your choice)

    I have checked, I selected [booking] calendar shortcode and not the only-available dates calendar.

    Can you help me to solve my problem ?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpdevelop

    (@wpdevelop)

    Hello.

    1) Firstly please recheck about the any conflicts with other plugins.
    Please try to deactivate one by one all your active plugins at the WordPress > Plugins menu and make testing after each plugin deactivation.
    If its not help, please deactivate all your plugins and active the default WordPress theme. And then retest it again.
    We just need to find the reason of this issue.

    2) Otherwise, if the issue exist only in the emails (and in the Booking Listing page you are having correct dates), so then please try to make this fix.

    Please open this file ../booking/core/wpbc-dates.php

    ( you can check how to edit files in WordPress menu in this article https://wpbookingcalendar.com/faq/how-edit-file-in-wp-menu/ )

    then find this code:

    
    $mydates_result .= date_i18n( $date_format_now, mktime( $tms[0], $tms[1], $tms[2], $dta[1], $dta[2], $dta[0] ) ) . ', ';
    

    and replace it to this code:

    
    //FixIn: 8.7.3.9    - fix issue of Daylight Saving Time - in some systems after ~ 29 of March, system generate minus several hours which  show incorrect  selected dates
            $mydates_result .= date( $date_format_now, strtotime(  $dt   ) ) . ', ';
    

    This issue can be because of “Daylight Saving Time” – in some systems after ~ 29 of March, generate time shift for some hours.
    This fix will be exist in next update of plugin.

    Kind Regards.

    Thread Starter levanier

    (@levanier)

    Ok, i’m impressed.

    2 minutes after my new topic I got the answer right and fix my problem. You guys are the best !

    Lots of love from france !

    Plugin Author wpdevelop

    (@wpdevelop)

    You are welcome:)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wrong dates’ is closed to new replies.