use localtime instead of gmttime for logging (fixes #55)