Skip to content

Commit

Permalink
revise wrong date syntax (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg authored and bukinoshita committed Oct 9, 2017
1 parent 6f823de commit e62808b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e62808b

Please sign in to comment.