Sleep pattern times

I have to change the sleep pattern times because I work nights etc , didn't have to do this with the fitbit I had . Any ideas please