Fixes #24

Catch an exception when trimming microseconds