@magic-xpa/gui 4.900.0-dev490.31 → 4.900.0-dev490.34
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.
|
@@ -5640,24 +5640,15 @@ class DisplayConvertor {
|
|
|
5640
5640
|
case PICInterface.PIC_YY:
|
|
5641
5641
|
{
|
|
5642
5642
|
this.int_2_a(outVal, outIdx, 2, breakParams.year, '0');
|
|
5643
|
-
let yearStr = NString.FromChars(outVal);
|
|
5644
|
-
year = +yearStr.substr(outIdx);
|
|
5645
|
-
outIdx += 2;
|
|
5646
|
-
len -= 2;
|
|
5647
|
-
}
|
|
5648
|
-
break;
|
|
5649
|
-
case PICInterface.PIC_YY:
|
|
5650
|
-
{
|
|
5651
|
-
this.int_2_a(outVal, outIdx, 2, breakParams.year, '0');
|
|
5652
|
-
let yearStr = NString.FromChars(outVal);
|
|
5643
|
+
let yearStr = NString.FromChars(outVal, outIdx, 2);
|
|
5653
5644
|
year = +yearStr.substr(outIdx);
|
|
5654
5645
|
outIdx += 2;
|
|
5655
5646
|
len -= 2;
|
|
5656
5647
|
}
|
|
5657
5648
|
break;
|
|
5658
5649
|
case PICInterface.PIC_YYYY:
|
|
5659
|
-
this.int_2_a(outVal, outIdx, 4, year, '0');
|
|
5660
|
-
let yearStr = NString.FromChars(outVal);
|
|
5650
|
+
this.int_2_a(outVal, outIdx, 4, breakParams.year, '0');
|
|
5651
|
+
let yearStr = NString.FromChars(outVal, outIdx, 4);
|
|
5661
5652
|
year = +yearStr.substr(outIdx);
|
|
5662
5653
|
outIdx += 4;
|
|
5663
5654
|
len -= 4;
|