Fix DST for two days of the year.

This commit is contained in:
Nicolas Stepien 2011-11-05 15:18:23 +01:00
parent 59754aa161
commit ee981c69fd
3 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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

View File

@ -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