diff --git a/public/js/icinga/timezone.js b/public/js/icinga/timezone.js index ab1d0fc76..c92c57746 100644 --- a/public/js/icinga/timezone.js +++ b/public/js/icinga/timezone.js @@ -41,17 +41,9 @@ * * @param {String} name * @param {String} value - * @param {Number} days */ - writeCookie: function(name, value, days) { - var expires = ''; - - if (days) { - var date = new Date(); - date.setTime(date.getTime()+(days*24*60*60*1000)); - var expires = '; expires=' + date.toGMTString(); - } - document.cookie = name + '=' + value + expires + '; path=/'; + writeCookie: function(name, value) { + document.cookie = name + '=' + value + '; path=/'; }, /**