Fix for issue #289: accept time strings with more than 6 trailing zeros after the final dot.

Note: In this pull request is a commit by Cadair included, because it was pushed to master but not to staging which is a bad thing™. Is it possible to merge only my two commits to staging?