Random times and partial differential equations