use lowercase d in $.isDST

This commit is contained in:
James Campos 2012-03-16 00:08:06 -07:00
parent 1e74512ac5
commit 6d7bd16653
2 changed files with 11 additions and 11 deletions

View File

@ -455,12 +455,12 @@
0200 EST (UTC-05) = 0700 UTC 0200 EST (UTC-05) = 0700 UTC
0200 EDT (UTC-04) = 0600 UTC 0200 EDT (UTC-04) = 0600 UTC
*/ */
var D, date, day, hours, month, sunday; var d, date, day, hours, month, sunday;
D = new Date(); d = new Date();
date = D.getUTCDate(); date = d.getUTCDate();
day = D.getUTCDay(); day = d.getUTCDay();
hours = D.getUTCHours(); hours = d.getUTCHours();
month = D.getUTCMonth(); month = d.getUTCMonth();
if (month < 2 || 10 < month) return false; if (month < 2 || 10 < month) return false;
if ((2 < month && month < 10)) return true; if ((2 < month && month < 10)) return true;
sunday = date - day; sunday = date - day;

View File

@ -369,11 +369,11 @@ $.extend $,
0200 EDT (UTC-04) = 0600 UTC 0200 EDT (UTC-04) = 0600 UTC
### ###
D = new Date() d = new Date()
date = D.getUTCDate() date = d.getUTCDate()
day = D.getUTCDay() day = d.getUTCDay()
hours = D.getUTCHours() hours = d.getUTCHours()
month = D.getUTCMonth() month = d.getUTCMonth()
#this is the easy part #this is the easy part
if month < 2 or 10 < month if month < 2 or 10 < month