The function getElementsByClassName returns multiple elements. Classes are designed to be applied to multiple objects. One option to solve this would be to get the first element in the array.
Here is an example of that:
var elements = document.getElementsByClassName('open');
elements[0].innerHTML = openHours
(Shorthand version of this would be using querySelector, although keep in mind that querySelector is a lot slower than the built in DOM functions - and its not supported in early version's of IE or FireFox. )
Looping through each of the elements in the classes is another option as well:
var elements= document.getElementsByClassName("open");
for(var i = 0; i < elements.length; i++)
{
elements[i].innerHTML = openHours
}
Otherwise (what I would recommend, since you only need one object), is giving the object an ID instead of a class.
<div id="openStatus"></div>
document.getElementById('openStatus');