fixed time conversion bug in prov-sql