more correct

This commit is contained in:
James Campos 2011-11-07 21:54:45 -08:00
parent 21dc16ef86
commit 074a769e76
2 changed files with 20 additions and 4 deletions

View File

@ -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 (UTC05) during standard time and 4
hrs (UTC04) 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;

View File

@ -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 (UTC05) during standard time and 4
hrs (UTC04) 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