Fix time conversion to and from string to decimal representation.