Comment Comment by Aaron1011 I tried that, but found that guessing backwards from the current time works better: https://gist.github.com/Aaron1011/2595f8699ade9d4df16398a68e... parent Aaron1011 8 years ago