Daylight savings safari bug, solved by changing the timezone to utc in an if statement