REQUIRED INFORMATION




Ext version tested:
  • Sencha Touch 2.1, 2.2a (680260429f69af82ac622edec7f037b2ab954ba6)

Description:
  • PullRefresh resetRefreshState() uses its own message template and ignores set pullTpl.

Code:
resetRefreshState: function() {
    var me = this;


    me.isRefreshing = false;
    me.lastUpdated = new Date();


    me.setViewState('pull');
    me.updatedEl.setHtml(this.getLastUpdatedText() + '&nbsp;' + Ext.util.Format.date(me.lastUpdated, "m/d/Y h:iA")); <----hardcoded template and datetime format
}

Steps to reproduce the problem:
  • Use this template, on first pullrefresh date is properly formated (Czech).
Code:
<tpl for=".">
<div class="x-list-pullrefresh">
    <div class="x-list-pullrefresh-arrow"></div>
    <div class="x-loading-spinner">
        <span class="x-loading-top"></span>
        <span class="x-loading-right"></span>
        <span class="x-loading-bottom"></span>
        <span class="x-loading-left"></span>
    </div>
    <div class="x-list-pullrefresh-wrap">
        <h3 class="x-list-pullrefresh-message">{message}</h3>
        <div class="x-list-pullrefresh-updated">{lastUpdatedText}&nbsp;{lastUpdated:date("d. m. Y H:i")}</div>
    </div>
</div>
</tpl>

The result that was expected:
  • Datetime in ("d. m. Y H:i") format in second pullrefresh

The result that occurs instead:
  • Datetime in ("m/d/Y h:iA") format in second pullrefresh