diff --git a/web/javascript/common.js b/web/javascript/common.js index 59070fdec..5eccb4d03 100644 --- a/web/javascript/common.js +++ b/web/javascript/common.js @@ -196,9 +196,8 @@ Prefs.setValue = function(key, val) if (!(key in Prefs._Defaults)) console.warn("unrecognized preference key '%s'", key); - var days = 30; var date = new Date(); - date.setTime(date.getTime()+(days*24*60*60*1000)); + date.setFullYear (date.getFullYear() + 1); document.cookie = key+"="+val+"; expires="+date.toGMTString()+"; path=/"; };