The flag used was a 48 star flag, so it was appropriate for 1918. 1918 is the correct year for this movie as WWI ended on November 11, 1918.
Incorrect. The armistice was November 11, 1918
The war did not end until the signing of the treaty of Versailles in June 1919