From 374ccf52f1c686fa6611c4160f344ccace76ac63 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 7 Jan 2018 18:44:49 +0100 Subject: [PATCH] Fixed issue in month determination --- assets/js/components/posts/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/components/posts/form.js b/assets/js/components/posts/form.js index 571726b8..9e419735 100644 --- a/assets/js/components/posts/form.js +++ b/assets/js/components/posts/form.js @@ -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);