This is my current code, I'm trying to set the background of my site to a rainbow gradient however this code isn't working, however I know its being called as the alert goes off on the page? How would I go about fixing this?
var date = new Date();
var hours = date.getHours();
var day = date.getDay();
var seconds = date.getSeconds();
var minutes = date.getMinutes();
var month = date.getMonth();
if (month == 4) {
document.getElementById("container").style.backgroundColor = `linear-gradient(red, yellow, green)`;
alert("test");
}