alextselegidis / easyappointments

:date: Easy!Appointments - Self Hosted Appointment Scheduler
https://easyappointments.org
GNU General Public License v3.0
3.31k stars 1.26k forks source link

Not working on Firefox #1565

Open CarlSinclair opened 2 months ago

CarlSinclair commented 2 months ago

It starts throwing errors from the start, but it lets you go through the wizard until the end. Breaks before submitting the final step.

Source map errors:

Source map error: Error: request failed with status 404
Resource URL: /assets/vendor/moment/moment.min.js
Source Map URL: moment.min.js.map

JS errors:

Uncaught Error: Invalid date value provided: 2024-07-21 3:45 pm
    format /assets/js/utils/date.js:1
    updateConfirmFrame /assets/js/pages/booking.js:39
    getAvailableHours /assets/js/http/booking_http_client.js:6
    jQuery 7
    getAvailableHours /assets/js/http/booking_http_client.js:2
    applyUnavailableDates /assets/js/http/booking_http_client.js:22
    getUnavailableDates /assets/js/http/booking_http_client.js:19
    jQuery 6
    getUnavailableDates /assets/js/http/booking_http_client.js:15
    addEventListeners /assets/js/pages/booking.js:23
    jQuery 2

moment.js errors:

Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: 2024-07-21 3:45 pm, _f: undefined, _strict: undefined, _locale: [object Object]
alextselegidis commented 2 months ago

Hello!

Thanks for submitting this case.

The sourcemap error does not affect the functionality, but there seems to be a JS error related to parsing dates.

Is it possible that you pm me the location of your installation to test this?

info@alextselegidis.com

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