node-firebird 2.14.0 → 2.14.1
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.
- package/lib/wire/xsqlvar.js +8 -4
- package/package.json +1 -1
- package/src/wire/xsqlvar.ts +8 -4
package/lib/wire/xsqlvar.js
CHANGED
|
@@ -637,8 +637,9 @@ class SQLVarTimeTz extends SQLVarBase {
|
|
|
637
637
|
var time = data.readUInt();
|
|
638
638
|
data.readInt(); // skip timezone info
|
|
639
639
|
if (!lowerV13 || !data.readInt()) {
|
|
640
|
+
// the wire value is already UTC; no local-offset adjustment
|
|
640
641
|
var d = new Date(0);
|
|
641
|
-
d.setMilliseconds(Math.floor(time / 10)
|
|
642
|
+
d.setMilliseconds(Math.floor(time / 10));
|
|
642
643
|
return d;
|
|
643
644
|
}
|
|
644
645
|
return null;
|
|
@@ -655,8 +656,9 @@ class SQLVarTimeTzEx extends SQLVarTimeTz {
|
|
|
655
656
|
data.readInt(); // skip timezone info
|
|
656
657
|
data.readInt(); // skip ext_offset
|
|
657
658
|
if (!lowerV13 || !data.readInt()) {
|
|
659
|
+
// the wire value is already UTC; no local-offset adjustment
|
|
658
660
|
var d = new Date(0);
|
|
659
|
-
d.setMilliseconds(Math.floor(time / 10)
|
|
661
|
+
d.setMilliseconds(Math.floor(time / 10));
|
|
660
662
|
return d;
|
|
661
663
|
}
|
|
662
664
|
return null;
|
|
@@ -673,8 +675,9 @@ class SQLVarTimeStampTz extends SQLVarBase {
|
|
|
673
675
|
var time = data.readUInt();
|
|
674
676
|
data.readInt(); // skip timezone info
|
|
675
677
|
if (!lowerV13 || !data.readInt()) {
|
|
678
|
+
// the wire value is already UTC; no local-offset adjustment
|
|
676
679
|
var d = new Date(0);
|
|
677
|
-
d.setMilliseconds((date - DateOffset) * TimeCoeff + Math.floor(time / 10)
|
|
680
|
+
d.setMilliseconds((date - DateOffset) * TimeCoeff + Math.floor(time / 10));
|
|
678
681
|
return d;
|
|
679
682
|
}
|
|
680
683
|
return null;
|
|
@@ -692,8 +695,9 @@ class SQLVarTimeStampTzEx extends SQLVarTimeStampTz {
|
|
|
692
695
|
data.readInt(); // skip timezone info
|
|
693
696
|
data.readInt(); // skip ext_offset
|
|
694
697
|
if (!lowerV13 || !data.readInt()) {
|
|
698
|
+
// the wire value is already UTC; no local-offset adjustment
|
|
695
699
|
var d = new Date(0);
|
|
696
|
-
d.setMilliseconds((date - DateOffset) * TimeCoeff + Math.floor(time / 10)
|
|
700
|
+
d.setMilliseconds((date - DateOffset) * TimeCoeff + Math.floor(time / 10));
|
|
697
701
|
return d;
|
|
698
702
|
}
|
|
699
703
|
return null;
|
package/package.json
CHANGED
package/src/wire/xsqlvar.ts
CHANGED
|
@@ -750,8 +750,9 @@ export class SQLVarTimeTz extends SQLVarBase {
|
|
|
750
750
|
data.readInt(); // skip timezone info
|
|
751
751
|
|
|
752
752
|
if (!lowerV13 || !data.readInt()) {
|
|
753
|
+
// the wire value is already UTC; no local-offset adjustment
|
|
753
754
|
var d = new Date(0);
|
|
754
|
-
d.setMilliseconds(Math.floor(time / 10)
|
|
755
|
+
d.setMilliseconds(Math.floor(time / 10));
|
|
755
756
|
return d;
|
|
756
757
|
}
|
|
757
758
|
return null;
|
|
@@ -771,8 +772,9 @@ export class SQLVarTimeTzEx extends SQLVarTimeTz {
|
|
|
771
772
|
data.readInt(); // skip ext_offset
|
|
772
773
|
|
|
773
774
|
if (!lowerV13 || !data.readInt()) {
|
|
775
|
+
// the wire value is already UTC; no local-offset adjustment
|
|
774
776
|
var d = new Date(0);
|
|
775
|
-
d.setMilliseconds(Math.floor(time / 10)
|
|
777
|
+
d.setMilliseconds(Math.floor(time / 10));
|
|
776
778
|
return d;
|
|
777
779
|
}
|
|
778
780
|
return null;
|
|
@@ -792,8 +794,9 @@ export class SQLVarTimeStampTz extends SQLVarBase {
|
|
|
792
794
|
data.readInt(); // skip timezone info
|
|
793
795
|
|
|
794
796
|
if (!lowerV13 || !data.readInt()) {
|
|
797
|
+
// the wire value is already UTC; no local-offset adjustment
|
|
795
798
|
var d = new Date(0);
|
|
796
|
-
d.setMilliseconds((date - DateOffset) * TimeCoeff + Math.floor(time / 10)
|
|
799
|
+
d.setMilliseconds((date - DateOffset) * TimeCoeff + Math.floor(time / 10));
|
|
797
800
|
return d;
|
|
798
801
|
}
|
|
799
802
|
|
|
@@ -815,8 +818,9 @@ export class SQLVarTimeStampTzEx extends SQLVarTimeStampTz {
|
|
|
815
818
|
data.readInt(); // skip ext_offset
|
|
816
819
|
|
|
817
820
|
if (!lowerV13 || !data.readInt()) {
|
|
821
|
+
// the wire value is already UTC; no local-offset adjustment
|
|
818
822
|
var d = new Date(0);
|
|
819
|
-
d.setMilliseconds((date - DateOffset) * TimeCoeff + Math.floor(time / 10)
|
|
823
|
+
d.setMilliseconds((date - DateOffset) * TimeCoeff + Math.floor(time / 10));
|
|
820
824
|
return d;
|
|
821
825
|
}
|
|
822
826
|
|