Fixed UTC Assumptions

Two fixes for SQL using local time and Opserver using UTC time.