Correctly parse urls with time related queries

fixes #654
Merge pull request #686 from ebensing/advtime

Correctly parse urls with time related queries