From e62808b10bbff07d675c85942678fabbbe259829 Mon Sep 17 00:00:00 2001 From: Even Stensberg Date: Mon, 9 Oct 2017 19:59:22 +0200 Subject: [PATCH] revise wrong date syntax (#6) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e4c3ca5..cca0a1d 100644 --- a/README.md +++ b/README.md @@ -184,7 +184,7 @@ import cookie from 'react-cookies' handleButtonClick() { const expires = new Date() - expires.setDate(now.getDate() + 14) + expires.setDate(Date.now() + 1000 * 60 * 60 * 24 * 14) cookie.save( 'userId',