fixed bug where hours were using 1-24 instead of 0-23