mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +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
|
//Convert the end time to a timestamp
|
||||||
var end_date = new Date();
|
var end_date = new Date();
|
||||||
end_date.setDate(end_date_array[0]);
|
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]);
|
end_date.setFullYear(end_date_array[2]);
|
||||||
var time_end = Math.floor(end_date.getTime()/1000);
|
var time_end = Math.floor(end_date.getTime()/1000);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user