Properly converting time objects