Time conversion debugged