I notice that in September 1917 Army ranks were still used: when were RAF ranks adopted?
A small clue ... the Royal Air Force was formed on 1 April 1918.
However, it was not until 1 August 1919 that the current system came into force.
https://en.wikipedia.org/wiki/RAF_officer_ranks