-
1. Re: Calendar weird issue, July 2014 is one repeated cell and can't access August 2014!!
michpetrov Jul 11, 2014 4:12 AM (in response to romyo0o)Well, that's really weird. But I'm not sure we'll be able to reproduce it. The day numbers are being created by JavaScript, are you getting any errors in the console?
-
2. Re: Calendar weird issue, July 2014 is one repeated cell and can't access August 2014!!
johnkeg2014 Jul 11, 2014 12:05 PM (in response to michpetrov)Apparently it has something to do with Egypt (Cairo) timezone specifically, which has undergone several changes to the daylight saving rules the last couple of months.
-
3. Re: Calendar weird issue, July 2014 is one repeated cell and can't access August 2014!!
johnkeg2014 Jul 11, 2014 1:59 PM (in response to johnkeg2014)Narrowing down the research, found this expression:
new Date(fullYear, month, 32);
It returns Thu Jul 31 2014 23:00:00 GMT+0200 (EEST) while it should instead return something like Fri Aug 01 2014 00:00:00 GMT+0200 (Egypt Standard Time), and consequently, the function
function daysInMonthByDate(date) {
return 32 - new Date(date.getFullYear(), date.getMonth(), 32).getDate();
}
returns 1 instead of 31.
-
4. Re: Calendar weird issue, July 2014 is one repeated cell and can't access August 2014!!
johnkeg2014 Jul 12, 2014 9:50 AM (in response to johnkeg2014)Issue already opened: RF-12448.
It's caused by the way Javascript handles daylight saving (timezone jumps).
Can be avoided for example by using UTC time.