handle nanosecond resolution when setting timestamps