Last active
June 20, 2016 08:43
-
-
Save r-cyr/f0dfcb28e6d44ef2222c3f655610b7fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch().filter(event => ( | |
var startTime = new Date(event.start_time).getTime(); | |
var eventStart = Date.now() - 21600000; | |
var eventEnd = Date.now() - 7776000000; | |
params.location = params.location || event.location; | |
return (startTime >= eventStart) && (startTime <= eventEnd); | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment