@@ -39918,7 +39918,8 @@ CUI.DateTime = (function(superClass) {
39918
39918
39919
39919
DateTime.defaults = {
39920
39920
button_tooltip: "Open calendar",
39921
- bc_appendix: ["B.C.", "BC", "V. CHR.", "VCHR", "VCHR."]
39921
+ bc_appendix: ["B.C.", "BC", "V. CHR.", "VCHR", "VCHR."],
39922
+ bc_appendix_output: "B.C."
39922
39923
};
39923
39924
39924
39925
DateTime.prototype.initOpts = function() {
@@ -41390,11 +41391,11 @@ CUI.DateTime = (function(superClass) {
41390
41391
DateTime.formatMomentWithBc = function(mom, format) {
41391
41392
var bc, regexp, replace, v;
41392
41393
if (mom.year() === 0) {
41393
- return "1 " + CUI.DateTime.defaults.bc_appendix[0] ;
41394
+ return "1 " + CUI.DateTime.defaults.bc_appendix_output ;
41394
41395
}
41395
41396
if (mom.bc) {
41396
41397
bc = parseInt(mom.bc) + 1;
41397
- return bc + " " + CUI.DateTime.defaults.bc_appendix[0] ;
41398
+ return bc + " " + CUI.DateTime.defaults.bc_appendix_output ;
41398
41399
}
41399
41400
if (mom.year() > 0) {
41400
41401
v = mom.format(format);
@@ -41403,7 +41404,7 @@ CUI.DateTime = (function(superClass) {
41403
41404
return v.replace(regexp, "" + mom.year());
41404
41405
}
41405
41406
mom.subtract(1, "year");
41406
- v = mom.format(format) + " " + CUI.DateTime.defaults.bc_appendix[0] ;
41407
+ v = mom.format(format) + " " + CUI.DateTime.defaults.bc_appendix_output ;
41407
41408
replace = "\\-0*" + (-1 * mom.year());
41408
41409
regexp = new RegExp(replace);
41409
41410
return v.replace(regexp, "" + (-1 * mom.year()));
0 commit comments