X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/145ca7860e1b2c33b6a92efe606a1b75b20a9cb3..6c49d9981c96cdd5d931cbd1eeb5cc584c1370ab:/lib/functions.js.php?ds=inline diff --git a/lib/functions.js.php b/lib/functions.js.php index e8a6bb1..7a1c5af 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -206,7 +206,7 @@ function add_time_string_to_date(d, time) { return false; } - + if (time == 'minute') { d.setSeconds (d.getSeconds() + 60); @@ -232,6 +232,11 @@ function add_time_string_to_date(d, time) d.setSeconds (d.getSeconds() + 2419200); return true; } + if (time == 'quarter') + { + d.setSeconds (d.getSeconds() + 7257600); + return true; + } if (time == 'year') { d.setSeconds (d.getSeconds() + 29030400);