That is essentially the law in Norway - the work schedule need to be posted minimum two weeks in advance - and extra shifts should generally be considered overtime. Unfortunately it's probably one of the regulations that are most frequently broken.
Norwegian link: https://www.arbeidstilsynet.no/regelverk/lover/arbeidsmiljol...