Convert timestamps for time related queries of an alarm history into utc time.
Timestamps of an alarm are stored in utc time to the database. Because of that timestamp related queries should also be in utc time. Right now the alarm service uses local time in the queries. This needs to be changed.