Modify event query time function

The `time()` function always returns UTC, whereas [`current_time()`](http://codex.wordpress.org/Function_Reference/current_time) is linked to the timezone settings.