Fixed time from double to long