Changed aroundtime to a time window (feature #1400)

@ProfYaffle & @adamsutton I rebased and cleaned up my version of the patch as discussed in the old pull request.
I really don't like the look of this, I'm not sure what its trying to do (I shoudl probably look at the UI output...)