Fixes undefined variable: $time

Turns out actually using the parameters you provide helps
Merge pull request #138 from UniversityRadioYork/undefined-time

Fixes undefined variable: $time