Parliament has voted an extension until midnight August 22 .