[#1246] Correctly convert to nanos