Thread: [Xsltforms-support] Problems with Calendar control
Brought to you by:
alain-couthures
From: Ivan P. <ipo...@ma...> - 2011-01-16 17:07:37
|
Hello, here is a couple of problems related to date picker: 3. Every second time Calendar control tends just to remain on screen after selecting date. This happens in Chrome, Firefox, ie7 & ie8. 4. Another problem with calendar: we live in time zone GMT +3 (Moscow) If we try to work with form from 0 to 3am (yeah, sometimes we work at night:))), then each exit from date control (by mouse clicking on any other control) will increase date by +1. Regards, Ivan Ponomarev |
From: COUTHURES A. <ala...@ag...> - 2011-01-19 21:38:34
|
> Every second time Calendar control tends just to remain on screen > after selecting date. This happens in Chrome, Firefox, ie7& ie8. I can't reproduce this issue. Can you please test this again with the latest SVN release? Could give me an external link?? > Another problem with calendar: we live in time zone GMT +3 (Moscow) > If we try to work with form from 0 to 3am (yeah, sometimes we work at > night:))), then each exit from date control (by mouse clicking on any > other control) will increase date by +1. This sounds like a mismatch with Javascript functions and timezone. But I will probably have to wait till midnight myself to test it myself... ;-) Thanks! -Alain |
From: <fr...@fl...> - 2011-01-19 22:16:15
|
Alain, If you are assessing config files anyway: in the Dutch configuration, dates are represented with dots: 19.01.2011 That is the German way. In Holland we use dashes: 19-01-2011 Fred van Blommestein Citeren COUTHURES Alain <ala...@ag...>: > >> Every second time Calendar control tends just to remain on screen >> after selecting date. This happens in Chrome, Firefox, ie7& ie8. > I can't reproduce this issue. Can you please test this again with the > latest SVN release? Could give me an external link?? >> Another problem with calendar: we live in time zone GMT +3 (Moscow) >> If we try to work with form from 0 to 3am (yeah, sometimes we work at >> night:))), then each exit from date control (by mouse clicking on any >> other control) will increase date by +1. > This sounds like a mismatch with Javascript functions and timezone. But > I will probably have to wait till midnight myself to test it myself... ;-) > > Thanks! > > -Alain > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |
From: Ivan P. <ipo...@ma...> - 2011-01-21 22:47:06
|
Alain, did you manage to test the "midnight problem"? ))) It's 2 AM in Moscow and just spent some time in Firebug and found out that the problem arises on line 683, var str = I8N._format(pattern, (loc ? date.getDate() : date.getUTCDate()), "dd"); loc variable here is undefined, so str receives the result of getUTCDate(), that is 1 day earlier. If you set focus in date control, and click on another control once again, the date in the control will become another day earlier and so on. If you set a breakpoint there on line 683, you will see on callstack that loc is undefined because of date.parse implementation (line 5818): "parse" : function(value) { return I8N.format(I8N.parseDate(value), "yyyy-MM-dd"); } If you change it for return I8N.format(I8N.parseDate(value), "yyyy-MM-dd", true); the problem disappears!! So my suggestion is to add ",true" to I8N.format call on line 5819. However, I am not at all sure that this is the right way to fix the problem, because I do not quite understand this code, so this is definitely something that you should assess ))) Tank you in advance, Regards, Ivan Ponomarev. On 20.01.2011 0:38, COUTHURES Alain wrote: > >> Every second time Calendar control tends just to remain on screen >> after selecting date. This happens in Chrome, Firefox, ie7& ie8. > I can't reproduce this issue. Can you please test this again with the > latest SVN release? Could give me an external link?? >> Another problem with calendar: we live in time zone GMT +3 (Moscow) >> If we try to work with form from 0 to 3am (yeah, sometimes we work at >> night:))), then each exit from date control (by mouse clicking on any >> other control) will increase date by +1. > This sounds like a mismatch with Javascript functions and timezone. But > I will probably have to wait till midnight myself to test it myself... ;-) > > Thanks! > > -Alain > > |