Repository navigation
fix(timezone-guard): 跨日期变更线相差两天时显示前天或后天 - #155
Open
Apageoflove wants to merge 1 commit into
Open
Apageoflove wants to merge 1 commit into
Apageoflove wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
把时钟固定在 2026 年 11 月 22 日 10:30 UTC,帕果帕果是 21 日 23:30,基里蒂马蒂已经是 23 日 00:30。原来两只钟和 25 小时的时差都算对了,下面却显示“对方那边已是明天”。点交换按钮后,另一边也只显示“昨天”。
页面现在按两个城市实际相差的日历天数显示“前天”或“后天”。相差一天时沿用原来的文案,同日没有日期后缀。插件版本升到 1.0.3。
验证范围是 Chromium 中的插件页面和 Node 测试。在 /dashboard 固定上述时刻并交换两座城市,两个方向的日期提示均正确。插件测试 12/12,Ubuntu(Node 22)仓库测试 92/92。Windows 有两个符号链接用例受系统权限限制。
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.