calendar.inc in both the OPAC and staff interface have a space in the call to the dateformat system preference: var dateformat_pref = "[% Koha.Preference('dateformat ') | html %]"; ^
*** This bug has been marked as a duplicate of bug 30706 ***