v1.18.x
Julian Lam 8 years ago
parent 7d523fae0f
commit 0f93206122

@ -157,7 +157,7 @@ if ('undefined' !== typeof window) {
// Convert "old" format to new format (#5108)
var options = { year: 'numeric', month: 'short', day: 'numeric', hour: 'numeric', minute: 'numeric' };
var iso;
els.each(function() {
els.each(function () {
iso = this.getAttribute('title');
this.setAttribute('datetime', iso);
this.setAttribute('title', new Date(iso).toLocaleString(config.userLang.replace('_', '-'), options));

Loading…
Cancel
Save