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