jtsage/jquery-mobile-datebox — Issue #127: headerFormat does not get applied
Author: gerrod
Created: 2011-12-08 23:55:27+00:00
State: open

If you specify a new headerFormat in the options when creating a new datebox, they get ignored when the datebox is displayed.

Looks like a bug in the _formatHeader method:

_formatHeader: function (date) {
// Shortcut function to return headerFormat date/time format
return this._formatter(this.options.lang[this.options.useLang].headerFormat, date);
}

Changing to this fixes the problem (though may not be technically be the correct solution):

_formatHeader: function (date) {
// Shortcut function to return headerFormat date/time format
return this._formatter(this.options.headerFormat, date);
}