Jump into local time for time functions

A quick patch for issue #2