Skip to content

Commit

Permalink
Switch toGMTString to toUTCString
Browse files Browse the repository at this point in the history
  • Loading branch information
carlsednaoui committed Aug 17, 2014
1 parent 76f345f commit 4af4b83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/ouibounce.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ return function ouibounce(el, config) {
var date = new Date();
date.setTime(date.getTime() + ms);

return "; expires=" + date.toGMTString();
return "; expires=" + date.toUTCString();
}

setTimeout(attachOuiBounce, timer);
Expand All @@ -60,7 +60,7 @@ return function ouibounce(el, config) {
var disableKeydown = false;
function handleKeydown(e) {
if (disableKeydown || checkCookieValue('viewedOuibounceModal', 'true') && !aggressive) return;
else if(!e.metaKey || e.keyCode != 76) return;
else if(!e.metaKey || e.keyCode !== 76) return;

disableKeydown = true;
_delayTimer = setTimeout(_fireAndCallback, delay);
Expand Down
2 changes: 1 addition & 1 deletion build/ouibounce.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/ouibounce.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function ouibounce(el, config) {
var date = new Date();
date.setTime(date.getTime() + ms);

return "; expires=" + date.toGMTString();
return "; expires=" + date.toUTCString();
}

setTimeout(attachOuiBounce, timer);
Expand Down

0 comments on commit 4af4b83

Please sign in to comment.