He remained with his army near Flanders, until the end of the war; during that time, he received a promotion to general.
He remained with his army near Flanders. This was until the end of the war. He received a promotion to general. This was during that time.