Fix last_hour out of bounds.
Add utils method for time conversion.
Merge branch 'fix_last_hour_out_of_bounds' into deploy