mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2025-01-05 05:25:06 +03:00
Patch error with Safari while booking related to time parsing (#1584)
This commit is contained in:
parent
dcf9015541
commit
14a0c38ac0
2 changed files with 12 additions and 8 deletions
|
@ -3,6 +3,13 @@
|
||||||
This file contains the code changes that were introduced into each release (starting from v1.1.0) so that is easy for
|
This file contains the code changes that were introduced into each release (starting from v1.1.0) so that is easy for
|
||||||
developers to maintain and readjust their custom modifications on the main project codebase.
|
developers to maintain and readjust their custom modifications on the main project codebase.
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fix the date parsing issue on Safari web browsers during the booking process (#1584)
|
||||||
|
|
||||||
|
|
||||||
## [1.5.0] - 2024-07-07
|
## [1.5.0] - 2024-07-07
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -675,17 +675,14 @@ App.Pages.Booking = (function () {
|
||||||
const selectedDateMoment = moment(selectedDateObject);
|
const selectedDateMoment = moment(selectedDateObject);
|
||||||
const selectedDate = selectedDateMoment.format('YYYY-MM-DD');
|
const selectedDate = selectedDateMoment.format('YYYY-MM-DD');
|
||||||
const selectedTime = $availableHours.find('.selected-hour').text();
|
const selectedTime = $availableHours.find('.selected-hour').text();
|
||||||
const selectedDateTime = `${selectedDate} ${selectedTime}`;
|
|
||||||
|
|
||||||
let formattedSelectedDate;
|
let formattedSelectedDate = '';
|
||||||
|
|
||||||
if (selectedDateObject) {
|
if (selectedDateObject) {
|
||||||
formattedSelectedDate = App.Utils.Date.format(
|
formattedSelectedDate =
|
||||||
selectedDateTime,
|
App.Utils.Date.format(selectedDate, vars('date_format'), vars('time_format'), false) +
|
||||||
vars('date_format'),
|
' ' +
|
||||||
vars('time_format'),
|
selectedTime;
|
||||||
true,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const timezoneOptionText = $selectTimezone.find('option:selected').text();
|
const timezoneOptionText = $selectTimezone.find('option:selected').text();
|
||||||
|
|
Loading…
Reference in a new issue