From ee981c69fd13d1f3c12ec6f6b176cdaa1b70a3d3 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 5 Nov 2011 15:18:23 +0100 Subject: [PATCH] Fix DST for two days of the year. --- 4chan_x.user.js | 4 ++-- changelog | 1 + script.coffee | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 8ee2aa3e2..9e82f892e 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -432,7 +432,7 @@ return false; } if (sunday < 15 && date.getDay() === 0) { - if (date.getHour() < 1) { + if (date.getHours() < 1) { return false; } return true; @@ -443,7 +443,7 @@ return true; } if (sunday < 8 && date.getDay() === 0) { - if (date.getHour() < 1) { + if (date.getHours() < 1) { return true; } return false; diff --git a/changelog b/changelog index 50be5269a..88a4f9014 100644 --- a/changelog +++ b/changelog @@ -7,6 +7,7 @@ master automatically reload expanded pictures on error update archives redirections for /diy/, /pol/ and /sci/ handle bans with the thread updater + fix DST for two days of the year - aeosynth quick reply redesign diff --git a/script.coffee b/script.coffee index 5e2562277..78049db6f 100644 --- a/script.coffee +++ b/script.coffee @@ -312,7 +312,7 @@ $.extend $, #during second sunday if sunday < 15 and date.getDay() is 0 - if date.getHour() < 1 + if date.getHours() < 1 return false return true @@ -326,7 +326,7 @@ $.extend $, # during first sunday if sunday < 8 and date.getDay() is 0 - if date.getHour() < 1 + if date.getHours() < 1 return true return false