X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/6d6c111b80ad13201b7acd7c2f5b8fd6d160e11b..c2127a10a2623c1be83a66b17e1c5a5b38ed5c62:/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);