Merge pull request #841 from popod/fix-safari-dates

Fix datepicker initialization dates with safari and IE.
This commit is contained in:
Alex Tselegidis 2020-08-15 15:08:52 +03:00 committed by GitHub
commit afac484f51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1343,8 +1343,8 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
} }
// Preselect time // Preselect time
$('#start-datetime').datepicker('setDate', new Date(start.format('YYYY-MM-DD HH:mm:ss'))); $('#start-datetime').datepicker('setDate', new Date(start.format('YYYY/MM/DD HH:mm:ss')));
$('#end-datetime').datepicker('setDate', new Date(end.format('YYYY-MM-DD HH:mm:ss'))); $('#end-datetime').datepicker('setDate', new Date(end.format('YYYY/MM/DD HH:mm:ss')));
return false; return false;
}, },

View file

@ -697,8 +697,8 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
$('#select-provider').val(provider.id).trigger('change'); $('#select-provider').val(provider.id).trigger('change');
// Preselect time // Preselect time
$('#start-datetime').datepicker('setDate', new Date(start.format('YYYY-MM-DD HH:mm:ss'))); $('#start-datetime').datepicker('setDate', new Date(start.format('YYY/MM/DD HH:mm:ss')));
$('#end-datetime').datepicker('setDate', new Date(end.format('YYYY-MM-DD HH:mm:ss'))); $('#end-datetime').datepicker('setDate', new Date(end.format('YYYY/MM/DD HH:mm:ss')));
return false; return false;
}, },