Skip to content

Commit

Permalink
(exdays*24*60*60*1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
codersaiful committed Nov 27, 2021
1 parent 07c368f commit 44b8616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/notice/offeres/offer.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@

function setCookie(cname, cvalue, exdays) {
const d = new Date();
d.setTime(d.getTime() + 20000); //(exdays*24*60*60*1000)
d.setTime(d.getTime() + (exdays*24*60*60*1000)); //(exdays*24*60*60*1000)
let expires = "expires="+ d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
Expand Down

0 comments on commit 44b8616

Please sign in to comment.