In a multilingual website FireBug spits "monthNames[month] is undefined" in clock.js at line 219 when visiting a page in a language other then english.
Doing further debugging I found that date.getMonth() was assigning NaN as a value for var month on line 215 as well as for all instances of object date, so that the why monthNames[month] gets undefined.
The culprit for all this lives at line 18 where the object date is created. The problem is that Drupal.settings['time'] assigns a translated string of current date into "new Date()" when the current language is not english. So, for instance, instead of December 15, 2010 it assigns Dezembro 15, 2010.
Any suggestion on how to get Drupal.settings['time'] in english even when the current language is not english?
|FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch months[month]_undefined-7.x-2.x.patch.|
|FAILED: [[SimpleTest]]: [MySQL] Invalid patch format in months[month]_undefined-7.x-1.x.patch.|
|FAILED: [[SimpleTest]]: [MySQL] 37 pass(es), 9 fail(s), and 14 exception(es).|