main function on testi.java works, still gets wrong time