Question: When did WW2 end in the country that seized Libya from the main subject of the Ottoman era in the history of Rila's country?

<P0-S0> now with nato support in the form of air cover, the rebel militia pushed westward, defeating loyalist armies and securing control of the centre of the country. <P0-S1> gaining the support of amazigh (berber) communities of the nafusa mountains, who had long been persecuted as non-arabic speakers under gaddafi, the ntc armies surrounded gaddafi loyalists in several key areas of western libya. <P0-S2> in august, the rebels seized zliten and tripoli, ending the last vestiges of gaddafist power. <P0-S3> on 25 august, the arab league recognised the ntc to be "the legitimate representative of the libyan state", on which basis libya would resume its membership in the league. <SEP> <P1-S0> However Italy's conquests were always heavily contested, both by various insurgencies (most prominently the Greek resistance and Yugoslav partisans) and Allied military forces, which waged the Battle of the Mediterranean throughout and beyond Italy's participation. <P1-S1> Ultimately the Italian empire collapsed after disastrous defeats in the Eastern European and North African campaigns. <P1-S2> In July 1943, following the Allied invasion of Sicily, Benito Mussolini was arrested by order of King Victor Emmanuel III, provoking a civil war. <P1-S3> Italy's military outside of the peninsula itself collapsed, its occupied and annexed territories falling under German control. <P1-S4> Italy surrendered to the Allies at the end of the Italian Campaign. <SEP> <P2-S0> from childhood, gaddafi was aware of the involvement of european colonialists in libya; his nation was occupied by italy, and during the north african campaign of world war ii it witnessed conflict between italian and british troops. <P2-S1> according to later claims, gaddafi's paternal grandfather, abdessalam bouminyar, was killed by the italian army during the italian invasion of 1911. at world war ii's end in 1945, libya was occupied by british and french forces. <P2-S2> although britain and france intended on dividing the nation between their empires, the general assembly of the united nations (un) declared that the country be granted political independence. <P2-S3> in 1951, the un created the united kingdom of libya, a federal state under the leadership of a pro-western monarch, idris, who banned political parties and established an absolute monarchy. <SEP> <P3-S0> The history of Ottoman Bulgaria spans nearly 500 years, from the conquest by the Ottoman Empire of the smaller kingdoms emerging from the disintegrating Second Bulgarian Empire in the late 14th century, to the Liberation of Bulgaria in 1878. <P3-S1> As a result of the Russo-Turkish War (1877–1878), the Principality of Bulgaria, a self-governing Ottoman vassal state that was functionally independent, was created. <P3-S2> In 1885 the autonomous province of Eastern Rumelia came under the control of the Bulgarian Tsar. <P3-S3> Bulgaria declared independence in 1908. <SEP> <P4-S0> As a result of this conflict, the Ottoman Turks ceded the provinces of Tripolitania, Fezzan, and Cyrenaica to Italy. <P4-S1> These provinces together formed what became known as Libya. <SEP> <P5-S0> Rila (, pronounced ) is a town in southwestern Bulgaria, in Rila Municipality, part of Kyustendil Province. <P5-S1> It is the administrative centre of Rila Municipality, which lies in the southeastern part of Kyustendil Province.