The time on your tamagotchi is probably wrong so your tamagotchi is sleeping in the day time instead of the night.
To change the time, press button "B" and it should go on the clock. Then press buttons "A" and "C" together and you will be able to set the time and date to the right time.