From 7946cb6e96c79641e88bc67778ac18ee36d5315c Mon Sep 17 00:00:00 2001 From: alikia2x Date: Fri, 14 Feb 2025 03:13:32 +0800 Subject: [PATCH] fix: try to remove timezone offseet in bisect --- lib/net/bisectVideoStartFrom.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/net/bisectVideoStartFrom.ts b/lib/net/bisectVideoStartFrom.ts index 9121504..66d9c27 100644 --- a/lib/net/bisectVideoStartFrom.ts +++ b/lib/net/bisectVideoStartFrom.ts @@ -1,5 +1,5 @@ import { getLatestVideos } from "lib/net/getLatestVideos.ts"; -import { HOUR, SECOND } from "$std/datetime/constants.ts"; +import { SECOND } from "$std/datetime/constants.ts"; import { VideoListVideo } from "lib/net/bilibili.d.ts"; export async function getVideoPositionInNewList(timestamp: number): Promise { @@ -19,7 +19,7 @@ export async function getVideoPositionInNewList(timestamp: number): Promise timestamp) { lo = mid + 1; } else { @@ -71,7 +71,7 @@ export async function getVideoPositionInNewList(timestamp: number): Promise timestamp) { indexInPage++; } else {