time conversion problem solution