Fix timezone bug causing slots past closing time; remove lunch fallback outside window
- Add Europe/Oslo timezone to all DateTime constructors in getAvailableTimes() and computeLunchBreak() to prevent UTC vs local time mismatch that allowed booking slots 1 hour past the worker's end time on same-day bookings - Remove fallback loop in computeLunchBreak() that pushed the lunch break outside the configured window; lunch break is now strictly enforced within the interval Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,6 @@ $this->load->helper('url');
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>assets/js/jquery/jquery-ui.css">
|
||||
<script src="<?php echo base_url();?>assets/js/jquery/jquery-ui.js"></script>
|
||||
<script src="https://momentjs.com/downloads/moment-with-locales.js"></script>
|
||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||
<!-- Start cookieyes banner --> <script id="cookieyes" type="text/javascript" src="https://cdn-cookieyes.com/client_data/82ccb0b38ad63612e4c6a3fa/script.js"></script> <!-- End cookieyes banner -->
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>assets/css/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>assets/css/responsive.css">
|
||||
|
||||
Reference in New Issue
Block a user