Created
January 17, 2012 20:44
-
-
Save philnelson/1628764 to your computer and use it in GitHub Desktop.
check if time is between 8am and 7pm PST
This file contains hidden or 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
var a = new Date; | |
var hours = a.getHours(); | |
var hourOffset = a.getTimezoneOffset()/60; | |
var timeNow = hours + hourOffset; | |
if (18 == a.getDate() && 0 == a.getMonth() && 2012 == a.getFullYear() && timeNow >= 13 && timeNow <= 24) { | |
window.location = "http://sopastrike.com/strike"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment