.1602452971339523:926be0fcd9c33af4322fa3118d27b356_69eda26c5c84888b671671ca.69eda8195c84888b67167348.69eda819d55b86767f56e609:Trae CN.T(2026/4/26 13:52:25)#50
Open
666yuhan666 wants to merge 1 commit into
Conversation
666yuhan666
commented
Apr 26, 2026
- 在 ProjectSchema 中添加 timezone 字段,默认为 'UTC'
- 修改 getRequestContext 透传时区参数(优先使用请求头,其次使用项目配置)
- 修改 TimelineService 支持时区参数,在 聚合中使用指定时区
- 修改 UtilsController 及其子类(VisitController, SessionController, BouncingController, DurationController)支持时区
- 修改所有 timeline API 端点传递时区参数,并在缓存 key 中包含时区
- 修改 useAuthFetch 添加 x-timezone 和 x-shared-timezone 请求头
- 前端优先使用项目配置的时区,其次使用浏览器本地时区
- 在 ProjectSchema 中添加 timezone 字段,默认为 'UTC' - 修改 getRequestContext 透传时区参数(优先使用请求头,其次使用项目配置) - 修改 TimelineService 支持时区参数,在 聚合中使用指定时区 - 修改 UtilsController 及其子类(VisitController, SessionController, BouncingController, DurationController)支持时区 - 修改所有 timeline API 端点传递时区参数,并在缓存 key 中包含时区 - 修改 useAuthFetch 添加 x-timezone 和 x-shared-timezone 请求头 - 前端优先使用项目配置的时区,其次使用浏览器本地时区
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.