Title: Booking time error
Last modified: February 19, 2020

---

# Booking time error

 *  Resolved [paxmedia](https://wordpress.org/support/users/paxmedia/)
 * (@paxmedia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/booking-time-error/)
 * Hi,
 * The latest update introduced a nasty bug, where some bookings show up with the
   wrong time (+1 hour) in the booking overview & google calendar. If you go to 
   the same booking and edit the post, the time is correct.
 * Visual clarification:
    [http://marijedouma.nl/SLN_booking_error_time.png](http://marijedouma.nl/SLN_booking_error_time.png)
 * The strangest thing it isn’t happening to all bookings; and I’m unable to reproduce
   the exact reason. Tried disabling all other plugins, default theme etc. Doesn’t
   fix the issue.
 * Some more details:
    – WordPress 5.3.2 on PHP 7 – plugin 3.36.6 – Time setting
   in wordpress is set to “Amsterdam” (UTC+1) as is the google calendar syncing 
   to it.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbooking-time-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Dimitri Grassi](https://wordpress.org/support/users/wordpresschef/)
 * (@wordpresschef)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/booking-time-error/#post-12459131)
 * Hi,
 * I’ve checked your website and it seems working.
 *  Thread Starter [paxmedia](https://wordpress.org/support/users/paxmedia/)
 * (@paxmedia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/booking-time-error/#post-12459920)
 * Yes, it works… but as you can see in the image I’ve sent there’s a bug with the
   actual bookings: the time is incorrect in both the google calendar & bookingoverview.
 * Is there a way to revert to 3.32 or something? Because the error didn’t occur
   back then.
 *  Thread Starter [paxmedia](https://wordpress.org/support/users/paxmedia/)
 * (@paxmedia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/booking-time-error/#post-12475271)
 * Hi [@wordpresschef](https://wordpress.org/support/users/wordpresschef/) any chance
   you checked the screenshots in my first post? Seems you misread that one and 
   now no answer.
    Hope to hear from you!
 *  Anonymous User 17211325
 * (@anonymized-17211325)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/booking-time-error/#post-12480963)
 * [@paxmedia](https://wordpress.org/support/users/paxmedia/) I just updated from
   3.34 to 3.36 and have the same problem too. Going to get started on debugging
   this now, will share what I find.
 *  Anonymous User 17211325
 * (@anonymized-17211325)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/booking-time-error/#post-12481118)
 * The problem is with date/times after March 08 2020, which is the DST (daylight
   savings time) change. Incorrect formatting is being introduced from the SLN_DateTime
   class. I came up with a fix for this function to display correct time in the 
   admin.
 * But upon testing, there remains problem with google calendar. The scheduled event
   is the correct time, but the event note/comment shows the time +1 hour.
 * Will post when I solve this fully
    -  This reply was modified 6 years, 2 months ago by Anonymous User 17211325.
 *  Anonymous User 17211325
 * (@anonymized-17211325)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/booking-time-error/#post-12481186)
 * Okay, tracing that was easier than expected. Use the follow changes are your 
   own risk.
 * /wp-content/plugins/salon-booking-system/src/SLN/DateTime.php, Line 23
 * Before:
    `$static_wp_timezone = new DateTimeZone( self::getWpTimezoneString());`
 * After:
    `//$static_wp_timezone = new DateTimeZone( self::getWpTimezoneString());`
 * /wp-content/plugins/salon-booking-system/src/SLN/TimeFunc.php, Line 19
 * Before:
    `$static_wp_timezone = new DateTimeZone( self::getWpTimezoneString());`
 * After:
    `//$static_wp_timezone = new DateTimeZone( self::getWpTimezoneString());`
 *  Anonymous User 17211325
 * (@anonymized-17211325)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/booking-time-error/#post-12484245)
 * [@paxmedia](https://wordpress.org/support/users/paxmedia/) The new version of
   the plugin (3.36.7) fixes the issue properly, my method was a bit of a hack 🙂
 *  Thread Starter [paxmedia](https://wordpress.org/support/users/paxmedia/)
 * (@paxmedia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/booking-time-error/#post-12484319)
 * Nice!
 * New version fixes it perfectly.
    Many many thanks 🙏🏻

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

The topic ‘Booking time error’ is closed to new replies.

 * ![](https://ps.w.org/salon-booking-system/assets/icon-256x256.gif?rev=3214950)
 * [Salon Booking System - Free Version](https://wordpress.org/plugins/salon-booking-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/salon-booking-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/salon-booking-system/)
 * [Active Topics](https://wordpress.org/support/plugin/salon-booking-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/salon-booking-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/salon-booking-system/reviews/)

## Tags

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

 * 8 replies
 * 3 participants
 * Last reply from: [paxmedia](https://wordpress.org/support/users/paxmedia/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/booking-time-error/#post-12484319)
 * Status: resolved