Title: A small bug &#8211; resolved
Last modified: August 21, 2016

---

# A small bug – resolved

 *  [petrfid](https://wordpress.org/support/users/petrfid/)
 * (@petrfid)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/a-small-bug-resolved/)
 * Hi, your plugin is very useful, but I found a small bug in your script:
    for 
   sending correct date in custom format is necessary in public function format_date
   in Booking.class.php (row 104) change “return apply_filters( ‘get_the_date’, 
   $date );” to “return $date;”, because date is calculated twice – first time in
   function and second time in $booking->format_date( $booking->date ); (WP_List_Table.
   BookingsTable.class.php) resp. $this->booking->format_date( $this->booking->date)(
   Notification.class.php).
 * After my correction everything works as it should.
 * Have a nice day!
 * [https://wordpress.org/plugins/restaurant-reservations/](https://wordpress.org/plugins/restaurant-reservations/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/a-small-bug-resolved/#post-5076963)
 * Hi petrfid,
 * Thanks for reporting the issue. I’m unable to replicate the problem on my end.
   When I set a custom date format in Settings > General (“l, F j, Y”), the correct
   date format is displayed in the Bookings table as well as the notification emails.
 * Can you let me a few details that might help me reproduce the issue you’re facing?
 * 1. Version of WordPress you’re using
    2. Version of Restaurant Reservations plugin
   you’re using 3. Your custom date format entered in Settings > General.
 *  Thread Starter [petrfid](https://wordpress.org/support/users/petrfid/)
 * (@petrfid)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/a-small-bug-resolved/#post-5076972)
 * Hi, NateWr,
 * I am using WP 3.9.1
    RR plugin ver. 1.1.4 My custom date format is j. n. Y, time
   format H:i
 * My site is multisite and multilanguage 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘A small bug – resolved’ is closed to new replies.

 * ![](https://ps.w.org/restaurant-reservations/assets/icon-128x128.png?rev=2205491)
 * [Five Star Restaurant Reservations - WordPress Booking Plugin](https://wordpress.org/plugins/restaurant-reservations/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restaurant-reservations/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restaurant-reservations/)
 * [Active Topics](https://wordpress.org/support/plugin/restaurant-reservations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restaurant-reservations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restaurant-reservations/reviews/)

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)
 * [format](https://wordpress.org/support/topic-tag/format/)
 * [time](https://wordpress.org/support/topic-tag/time/)

 * 2 replies
 * 2 participants
 * Last reply from: [petrfid](https://wordpress.org/support/users/petrfid/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/a-small-bug-resolved/#post-5076972)
 * Status: not resolved