From 6d7bd16653f9d18936b455df281d58556fc3f2cb Mon Sep 17 00:00:00 2001 From: James Campos Date: Fri, 16 Mar 2012 00:08:06 -0700 Subject: [PATCH] use lowercase d in $.isDST --- 4chan_x.user.js | 12 ++++++------ script.coffee | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 84a696b20..acaa7eaa9 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -455,12 +455,12 @@ 0200 EST (UTC-05) = 0700 UTC 0200 EDT (UTC-04) = 0600 UTC */ - var D, date, day, hours, month, sunday; - D = new Date(); - date = D.getUTCDate(); - day = D.getUTCDay(); - hours = D.getUTCHours(); - month = D.getUTCMonth(); + var d, date, day, hours, month, sunday; + d = new Date(); + date = d.getUTCDate(); + day = d.getUTCDay(); + hours = d.getUTCHours(); + month = d.getUTCMonth(); if (month < 2 || 10 < month) return false; if ((2 < month && month < 10)) return true; sunday = date - day; diff --git a/script.coffee b/script.coffee index 0e6bea436..0e7926152 100644 --- a/script.coffee +++ b/script.coffee @@ -369,11 +369,11 @@ $.extend $, 0200 EDT (UTC-04) = 0600 UTC ### - D = new Date() - date = D.getUTCDate() - day = D.getUTCDay() - hours = D.getUTCHours() - month = D.getUTCMonth() + d = new Date() + date = d.getUTCDate() + day = d.getUTCDay() + hours = d.getUTCHours() + month = d.getUTCMonth() #this is the easy part if month < 2 or 10 < month