Added local GMT offset to time functions
Added logic to turn switch on at a specified time in the future