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

    (@wpdevelop)

    Hello.
    You can change the dates format at the General Booking Settings page,
    at the “Listing of bookings” section.

    Thread Starter garymoncrieff

    (@garymoncrieff)

    Yes I know, but it doesn’t change the one on the main bookings admin page.

    Plugin Author wpdevelop

    (@wpdevelop)

    Where is it, at your system or at the live demo ?
    Can you send the screenshots of the General Booking Settings page and the Booking Listing page to the support email (the support email, you can find at the plugins site)?

    Thread Starter garymoncrieff

    (@garymoncrieff)

    Both

    See here

    Plugin Author wpdevelop

    (@wpdevelop)

    ahh.. I see.
    The dates format at the general booking settings page is apply only to the booking dates of bookings. It’s not impact to the creation/modification date of booking in actual version.

    Thread Starter garymoncrieff

    (@garymoncrieff)

    Is there any way you can fix the dates throughout the admin page as I just know before I buy with the new timeline, staff in our organisation will be confused.

    Plugin Author wpdevelop

    (@wpdevelop)

    Did you mean fixing format of the creation booking date ?

    Thread Starter garymoncrieff

    (@garymoncrieff)

    Throughout the admin area all dates are in US format where I really need them to follow the UK setting in general settings.

    Plugin Author wpdevelop

    (@wpdevelop)

    Hello,
    Please open this file: ../booking/lib/wpdev-bk-lib.php
    find this code:

    //$date_format = get_bk_option( 'booking_date_format');
                //$time_format = get_bk_option( 'booking_time_format');
                if (empty($date_format)) $date_format = "m / d / Y, D";
                if (empty($time_format)) $time_format = 'h:i a';
                $cr_date = date_i18n($date_format  , mysql2date('U',$bk_modification_date));
                $cr_time = date_i18n($time_format  , mysql2date('U',$bk_modification_date));

    then replace it to this code (uncomment 2 first lines):

    $date_format = get_bk_option( 'booking_date_format');
                $time_format = get_bk_option( 'booking_time_format');
                if (empty($date_format)) $date_format = "m / d / Y, D";
                if (empty($time_format)) $time_format = 'h:i a';
                $cr_date = date_i18n($date_format  , mysql2date('U',$bk_modification_date));
                $cr_time = date_i18n($time_format  , mysql2date('U',$bk_modification_date));

    Then you can set the date format for the booking creation dates at the General Booking Settings page in form section.

    Thread Starter garymoncrieff

    (@garymoncrieff)

    Thanks had to edit a few other areas too but that has fixed it.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Dates’ is closed to new replies.