HF-6954: Using localtime wwith UTC timezone
This fixes the internal timestamps to use UTC (by calling gmtime() instead of localtime()) which makes the values stored correct wrt config and data model values, whoch indicate they use UTC (the 'Z' at end of the dateTime value)