Skip to content

Commit e4bd128

Browse files
authored
Fix for Mendix 8
dojo.data.locale is no longer imported by default, so it has to be imported explicitly
1 parent dc59120 commit e4bd128

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/formatstring/widget/formatstring.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ define([
77
"dojo/_base/array",
88
"dojo/dom-class",
99
"dojo/on",
10+
"dojo/date/locale",
1011
"formatstring/widget/timeLanguagePack"
11-
], function(declare, _WidgetBase, dom, lang, dojo, dojoArray, domClass, on, languagePack) {
12+
], function(declare, _WidgetBase, dom, lang, dojo, dojoArray, domClass, on, dojoLocale, languagePack) {
1213
"use strict";
1314

1415
// var debug = logger.debug;
@@ -197,7 +198,7 @@ define([
197198
return this._parseTimeAgo(value);
198199
} else {
199200
options.selector = format;
200-
datevalue = dojo.date.locale.format(new Date(value), options);
201+
datevalue = dojoLocale.format(new Date(value), options);
201202
}
202203
return datevalue;
203204
},

0 commit comments

Comments
 (0)