Fixed issue #8279: JavaScript-Error in date.js

Dev: FF, Chrome had no problem but IE was not happy.
Dev: hope there's a new LS release soon...
Dev: 2.05 is not affected