From 237b2f2b4944f466e6628a2ca91c15344459d7dc Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 17 Mar 2012 05:10:20 -0700 Subject: [PATCH] use upper-case D again for date --- 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 071ecc92a..8399c3203 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -458,12 +458,12 @@ 0200 EST (UTC-05) = 0700 UTC 0200 EDT (UTC-04) = 0600 UTC */ - var 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 a59488153..2e0e5f30c 100644 --- a/script.coffee +++ b/script.coffee @@ -371,11 +371,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