cronapp-lib-js 3.0.0-SP.40 → 3.0.0-SP.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -494,7 +494,11 @@ StimulsoftHelper.prototype.overrideMethods = function() {
|
|
|
494
494
|
d = "2015-12-31";
|
|
495
495
|
}
|
|
496
496
|
if (d.length < 5 || (!d.match(TIME_PATTERN) && d.indexOf('-')) == -1) {
|
|
497
|
-
|
|
497
|
+
try {
|
|
498
|
+
return new Stimulsoft.System.DateTime(new Date(d));
|
|
499
|
+
} catch (e) {
|
|
500
|
+
return d;
|
|
501
|
+
}
|
|
498
502
|
}
|
|
499
503
|
|
|
500
504
|
if (typeof logError === 'undefined') {
|