Skip to content

Commit aacb5eb

Browse files
committed
f: test gov cycle adjust correctly for UTC
1 parent 2bd1149 commit aacb5eb

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

tests/calc-nth-gov-cycle.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,45 @@ let tests = [
1313
-1,
1414
{
1515
voteHeight: 2091954,
16-
voteIso: "2024-06-21T19:44:00.268Z",
17-
voteMs: 1718999040268,
16+
voteIso: "2024-06-21T13:44:00.273Z",
17+
voteMs: 1718977440273,
1818
voteDelta: -22669,
19-
voteDeltaMs: -3572218838.0476646,
19+
voteDeltaMs: -3572218769.8332934,
2020
superblockHeight: 2093616,
2121
superblockDelta: -21007,
22-
superblockIso: "2024-06-24T20:29:01.895Z",
23-
superblockMs: 1719260941895,
24-
superblockDeltaMs: -3310318105.380356,
22+
superblockIso: "2024-06-24T14:29:01.958Z",
23+
superblockMs: 1719239341958,
24+
superblockDeltaMs: -3310318042.1671886,
2525
},
2626
],
2727
[
2828
0,
2929
{
3030
voteHeight: 2108570,
31-
voteIso: "2024-07-22T03:03:37.268Z",
32-
voteMs: 1721617417268,
31+
voteIso: "2024-07-21T21:03:37.273Z",
32+
voteMs: 1721595817273,
3333
voteDelta: -6053,
34-
voteDeltaMs: -953841838.0476648,
34+
voteDeltaMs: -953841819.8332933,
3535
superblockHeight: 2110232,
3636
superblockDelta: -4391,
37-
superblockIso: "2024-07-25T03:48:38.895Z",
38-
superblockMs: 1721879318895,
39-
superblockDeltaMs: -691941105.3803562,
37+
superblockIso: "2024-07-24T21:48:38.908Z",
38+
superblockMs: 1721857718908,
39+
superblockDeltaMs: -691941092.1671883,
4040
},
4141
],
4242
[
4343
1,
4444
{
4545
voteHeight: 2125186,
46-
voteIso: "2024-08-21T10:23:14.268Z",
47-
voteMs: 1724235794268,
46+
voteIso: "2024-08-21T04:23:14.273Z",
47+
voteMs: 1724214194273,
4848
voteDelta: 10563,
49-
voteDeltaMs: 1664535161.952335,
49+
voteDeltaMs: 1664535130.166707,
5050
superblockHeight: 2126848,
5151
superblockDelta: 12225,
52-
superblockIso: "2024-08-24T11:08:15.894Z",
53-
superblockMs: 1724497695894,
54-
superblockDeltaMs: 1926435894.6196434,
52+
superblockIso: "2024-08-24T05:08:15.857Z",
53+
superblockMs: 1724476095857,
54+
superblockDeltaMs: 1926435857.832812,
5555
},
5656
],
5757
];

0 commit comments

Comments
 (0)