fixing millisecond precision on timestamp - thanks @karlvlam