WordPress.org

Ready to get started?Download WordPress

Forums

Booking Calendar
[resolved] Dates (11 posts)

  1. garymoncrieff
    Member
    Posted 1 year ago #

    Hey

    I'm currently evaluating this plugin, free version on a dev site and playing with the small business demo.

    One thing I have noticed is, in the main bookings view in the admin panel the date doesn't respect the setting and always stays in US format.

    Regards

    http://wordpress.org/extend/plugins/booking/

  2. wpdevelop
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. garymoncrieff
    Member
    Posted 1 year ago #

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

  4. wpdevelop
    Member
    Plugin Author

    Posted 1 year ago #

    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)?

  5. garymoncrieff
    Member
    Posted 1 year ago #

    Both

    See here

  6. wpdevelop
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. garymoncrieff
    Member
    Posted 1 year ago #

    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.

  8. wpdevelop
    Member
    Plugin Author

    Posted 1 year ago #

    Did you mean fixing format of the creation booking date ?

  9. garymoncrieff
    Member
    Posted 1 year ago #

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

  10. wpdevelop
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  11. garymoncrieff
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.