Skip to content

Commit 2e1142c

Browse files
committed
fix: use UTC day boundary for ARM getYesterdayState lookup
1 parent 635703a commit 2e1142c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/templates/origin-arm/origin-arm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export const createOriginARMProcessors = ({
220220
)
221221
}
222222
const getYesterdayState = async (block: Block) => {
223-
const startOfToday = dayjs(block.header.timestamp).startOf('day').toDate()
223+
const startOfToday = dayjs.utc(block.header.timestamp).startOf('day').toDate()
224224
return (
225225
findLast(states, (state) => state.timestamp < startOfToday) ??
226226
(await ctx.store.findOne(ArmState, {

0 commit comments

Comments
 (0)