alibaba / alibaba/fastjson2

[QUESTION]Spring boot集成了FastJson2后,有没有什么好的方法动态处理时区

Open
#2,124 4 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

### 请描述您的问题
*由于项目中不同的用户有不同的时区,数据库里存的是0时区的时间。表里记录了某个用户选中的时区。前端处理遇到好多控件上的问题,有没有什么的好的方案后端返回数据的时候动态替换下时区呢~*

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by reviewing the Spring Boot and FastJson2 integration involved in response serialization, then determine whether a supported approach can apply each user's stored timezone; done would require a clearly defined solution and reproducible example.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.