X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/6d6c111b80ad13201b7acd7c2f5b8fd6d160e11b..803190432fb705b53c37c403dba36d2c5a01f8c3:/lib/functions.js.php diff --git a/lib/functions.js.php b/lib/functions.js.php index 14fad1d..2127dbb 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -321,6 +321,11 @@ function add_time_string_to_date(d, time) d.setSeconds (d.getSeconds() + 604800); return true; } + if (time == 'fortnight') + { + d.setSeconds (d.getSeconds() + 1209600); + return true; + } if (time == 'month') { d.setSeconds (d.getSeconds() + 2592000);