User:VermillionOcean/DSTSetting.js

function setDST { var thisYear = new Date.getFullYear; dstOn = new Date(thisYear, 2, 14, 2); // Mar 14 of this year dstOn.setDate(14 - dstOn.getDay); // second Sunday in March dstOff = new Date(thisYear, 10, 7, 2); // Nov 7 of this year dstOff.setDate(7 - dstOff.getDay); // first Sunday in November }