From 074a769e76c2625f388e31a0f70136203d55f09f Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 7 Nov 2011 21:54:45 -0800 Subject: [PATCH] more correct --- 4chan_x.user.js | 12 ++++++++++-- script.coffee | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index f3e18e256..ab0d06943 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -417,7 +417,15 @@ and ends on the first Sunday of November, with all time changes taking place at 2:00 AM (0200) local time. - 0200 EST (UTC -5) = 0700 UTC + http://en.wikipedia.org/wiki/Eastern_Time_Zone + Its UTC time offset is −5 hrs (UTC−05) during standard time and −4 + hrs (UTC−04) during daylight saving time. + + Standard time: + 0200 EST (UTC-05) = 0700 UTC + + Dalyight saving time: + 0200 EST (UTC-04) = 0600 UTC */ var D, date, day, hours, month, sunday; D = new Date(); @@ -448,7 +456,7 @@ return true; } if (sunday < 8 && day === 0) { - if (hours < 7) { + if (hours < 6) { return true; } return false; diff --git a/script.coffee b/script.coffee index 8d59f0009..a8fa44c98 100644 --- a/script.coffee +++ b/script.coffee @@ -290,7 +290,15 @@ $.extend $, and ends on the first Sunday of November, with all time changes taking place at 2:00 AM (0200) local time. - 0200 EST (UTC -5) = 0700 UTC + http://en.wikipedia.org/wiki/Eastern_Time_Zone + Its UTC time offset is −5 hrs (UTC−05) during standard time and −4 + hrs (UTC−04) during daylight saving time. + + Standard time: + 0200 EST (UTC-05) = 0700 UTC + + Dalyight saving time: + 0200 EST (UTC-04) = 0600 UTC ### D = new Date() @@ -330,7 +338,7 @@ $.extend $, # during first sunday if sunday < 8 and day is 0 - if hours < 7 + if hours < 6 return true return false