Commit 1ab954f6 by Damien Moulard

Merge branch 'ticket_1315' into 'evolution_bdm'

Ticket 1315 - invalid date sur safari

See merge request !65
parents 9f883d7c 96c8e66d
Pipeline #1490 canceled with stage
......@@ -120,7 +120,7 @@ function init_shifts_list() {
for (shift of incoming_shifts) {
let shift_line_template = $("#selectable_shift_line_template");
let datetime_shift_start = new Date(shift.date_begin);
let datetime_shift_start = new Date(shift.date_begin.replace(/\s/, 'T'));
let f_date_shift_start = datetime_shift_start.toLocaleDateString("fr-fr", date_options);
......@@ -379,4 +379,4 @@ function init_shifts_exchange() {
$("#shifts_exchange_content").show();
init_calendar_page();
}
}
\ No newline at end of file
}
......@@ -138,7 +138,7 @@ function update_content() {
*/
function prepare_shift_line_template(date_begin) {
let shift_line_template = $("#shift_line_template");
let datetime_shift_start = new Date(date_begin);
let datetime_shift_start = new Date(date_begin.replace(/\s/, 'T'));
let f_date_shift_start = datetime_shift_start.toLocaleDateString("fr-fr", date_options);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment