changed evalPreferences() to use constant arrays containing short- and longdate format patterns instead of getDefaultDateFormats() (which was removed)
This commit is contained in:
parent
04370b261f
commit
610ad07242
1 changed files with 2 additions and 4 deletions
|
@ -52,13 +52,11 @@ function evalPreferences(param,modifier) {
|
|||
this.cache.dateSymbols = null;
|
||||
|
||||
// long dateformat
|
||||
var patterns = getDefaultDateFormats();
|
||||
var ldf = patterns[parseInt(param.longdateformat,10)];
|
||||
var ldf = LONGDATEFORMATS[parseInt(param.longdateformat,10)];
|
||||
this.longdateformat = ldf ? ldf : null;
|
||||
|
||||
// short dateformat
|
||||
var patterns = getDefaultDateFormats("short");
|
||||
var sdf = patterns[parseInt(param.shortdateformat,10)];
|
||||
var sdf = SHORTDATEFORMATS[parseInt(param.shortdateformat,10)];
|
||||
this.shortdateformat = sdf ? sdf : null;
|
||||
|
||||
this.modifytime = new Date();
|
||||
|
|
Loading…
Add table
Reference in a new issue