It is perfectly legal, unfortunately, unless you have a written employment contract guarantying your hours. Without a contract, you are an employee at will which means, amonng other things, that the employer is 100% control over your hours, pay, and benefits.