mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-29 15:26:27 +00:00
Fixed issue in month determination
This commit is contained in:
parent
e757900094
commit
374ccf52f1
@ -411,7 +411,7 @@ ComunicWeb.components.posts.form = {
|
||||
//Convert the end time to a timestamp
|
||||
var end_date = new Date();
|
||||
end_date.setDate(end_date_array[0]);
|
||||
end_date.setMonth(end_date_array[1]);
|
||||
end_date.setMonth(end_date_array[1] - 1); //January => 0 / December => 11
|
||||
end_date.setFullYear(end_date_array[2]);
|
||||
var time_end = Math.floor(end_date.getTime()/1000);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user