Skip to content

Instantly share code, notes, and snippets.

@nhanco
Created January 15, 2019 08:16
Show Gist options
  • Save nhanco/cae6ab61acb2d8c8add024d99fffdf00 to your computer and use it in GitHub Desktop.
Save nhanco/cae6ab61acb2d8c8add024d99fffdf00 to your computer and use it in GitHub Desktop.
wtf bug
function tomorrow(str) {
var r = []
var d = new Date(str)
d.setDate(d.getDate() + 1)
r["year"] = d.getFullYear()
r["month"] = d.getMonth() + 1
r["day"] = d.getDate()
return r
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment