If the period is locked it may not allow you to change it. also if you have not setup all the accouting periods in your Fiscal calenedar it may not update it. Lastly, in accouting preferences you can change the setting for Date/Period mismatch preferences to allow, disallow or warn depending on your use case