Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Scheduling Issue: Incorrect Display of Available Days

157 views
Skip to first unread message

Julian David Mendoza

unread,
Oct 21, 2024, 11:42:47 AM10/21/24
to Easy!Appointments - Support Group

Hi there,

I'm having trouble with the scheduling for a service. I want it to run from Monday to Friday, but not on weekends.

I've tried turning off Saturdays and Sundays in both the global and provider settings, but when I go to schedule something, it still shows Saturday as an option. Friday is grayed out, which is weird.

Can you please help me figure out why this is happening

Thank you for your time and assistance  

Appointment.png
working_plan.png

The Bat

unread,
Oct 21, 2024, 11:50:28 AM10/21/24
to Easy!Appointments - Support Group
Hello, you have to also make sure to set the right timezone properly for the provider and all other places in the E!A

Mike Keehn

unread,
Oct 22, 2024, 3:42:44 PM10/22/24
to Easy!Appointments - Support Group
I updated my installation to 1.5 (had to update due to a newer version of php on my server), and I am having the same issue. After realizing that configuration files have been moved since my last version I started with a fresh application directory and only copied my config.php over. I'd like to use my existing database, of course.

I'm attempting to have only Monday and Tuesday available on one week like I have before. I'm not even getting close to that, however. If I set the working day schedule to M-F 9am-6pm and copy to all providers, when I try to schedule an appointment the date picker makes Sunday-Thursday available to click on instead. When I click Sunday, however, it says there are no times available. So the mechanism for making days available and times available are not working together.

If I try to make only Monday and Tuesday available the date picker allows me to click on Sundays, Mondays, and the last day of every month no matter what day it is. Very strange. I've tried changing the main working plan to any day and only changing the dates for one provider to the dates we need, but it still makes the same error with the date picker.

I've double checked the time zone is set to the same across the board.

The Bat

unread,
Oct 23, 2024, 12:14:57 PM10/23/24
to Easy!Appointments - Support Group
Please take screen shot of timezone settings : provider site and customer site

Mike Keehn

unread,
Oct 23, 2024, 12:25:27 PM10/23/24
to Easy!Appointments - Support Group
Here are the time zones and a couple of other screenshots, the last one being what the calendar picker shows when I try to make an appointment. The appointment time slots do show up when I select Monday (as they should). If I click on Sunday or the 31st it displays "There are no available appointment hours for the selected date. Please choose another date" as it should. In addition I found this post on the discord and requested some more information, but the original user hasn't replied yet. It seems they were able to fix the issue with some JS but I'm afraid that is not my specialty and was asking for a little more detail.

General Settings.png
Provider Settings.png
Business Logic.png
Calendar Display.png

Mike Keehn

unread,
Oct 23, 2024, 12:45:57 PM10/23/24
to Easy!Appointments - Support Group
One more thing I double checked - the time zone in my php.ini is also set to America/New_York.

EDUARDO RODRIGUES SOUSA

unread,
Oct 23, 2024, 3:49:19 PM10/23/24
to Easy!Appointments - Support Group

Dear All,

I am encountering the same issue and believe it may be related to the flatpickr integration with Easy Appointments (EA). I don't think the issue is connected to the time zone settings, as the error also occurs on the demo site available at https://demo.easyappointments.org/. Please see the attached file for reference.

I have been unable to pinpoint the source of the problem, especially considering that the previous version worked perfectly.

Thank you for your attention, and I look forward to any guidance.

Kind regards,

booking.JPG
business_settings.JPG

Julian David Mendoza

unread,
Oct 24, 2024, 12:48:47 PM10/24/24
to Easy!Appointments - Support Group

Hi everyone,

I've checked everything and I have the time zone set to "America/Bogota" everywhere: EA, server, client PCs, and even in the php.ini file.  The issue persists.

However, I have noticed that when configuring the client's PC with UTC, while the rest of the system is configured in "America/Bogota", the disabling of non-working days works correctly.

I have attached screenshots for your reference.

working_plan.png
provider.png
UTC Correctly.png
booking_mistake.png

Mike Keehn

unread,
Oct 24, 2024, 1:36:54 PM10/24/24
to Easy!Appointments - Support Group

As a temporary workaround here's what I've done. (BTW, I'm using this for teachers at our school to schedule parent/teacher conferences.) We only have two days that they are offered. I have set up two blocked periods on the backend. One is from the beginning of the calendar year until the first day/time of conferences. The second is from the end time of conferences until the end of the year. I set the future booking limit to the day after our conferences.

Then in the booking_http_client.js file on the server I commented out lines 339-342 - the function for greying out unavailable dates. 

When a parent selects their teacher on the first page they are taken to the first day of conferences and can select a time. The only downside is that they can click on all of the other days on the calendar, but it does not show available appointment times and in general they know these two days are the only days that we do them so it shouldn't be much of an issue. I'd love to have the other dates greyed out if anyone has a real fix but we're going to be rolling this out soon so I wanted to have a working solution.

Alex M

unread,
Oct 30, 2024, 12:36:40 AM10/30/24
to Easy!Appointments - Support Group
I found the fix. The problem is with line 341 in assets/js/http/booking_http_client.js .

Change :

unavailableDates.map((unavailableDate) => new Date(unavailableDate)),


With:

unavailableDates.map((unavailableDate) => new Date(unavailableDate + 'T00:00')),

An explanation of why this fixes the issue can be found here:

https://stackoverflow.com/questions/39223481/incorrect-date-shown-in-new-date-in-javascript

Mike Keehn

unread,
Oct 30, 2024, 7:14:35 AM10/30/24
to Easy!Appointments - Support Group
Fantastic, thanks!

Alex Tselegidis

unread,
Nov 5, 2024, 7:02:00 AM11/5/24
to Easy!Appointments - Support Group
Amazing fix, thanks!


Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!



Alex Tselegidis

unread,
Nov 5, 2024, 7:04:10 AM11/5/24
to Easy!Appointments - Support Group
FYI this will be part of the standard 1.5.1 release which will become available soon 





Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

Temi B

unread,
Dec 19, 2024, 11:49:17 AM12/19/24
to Easy!Appointments - Support Group
There's a booking booking_http_client.min.js in the js folder that had to be changed for the fix to take effect. I also had to clear browser cache after. Is it safe to delete that min.js file? 

Alex Tselegidis

unread,
Jan 10, 2025, 12:07:41 PM (6 days ago) Jan 10
to Easy!Appointments - Support Group
No, that file is the production version of the non "min" file. 

If you change any of those files then you can update the cache bust in application/config/app.php so that end users do not need to clear the cache manually. 


Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!



Reply all
Reply to author
Forward
0 new messages