Files
java-10584/.workbuddy/memory/2026-04-12.md
赵忠林 6781374c1e fix(system): 修正登录记录时间格式和更新专家数据
- 为LoginRecord实体的createTime和updateTime字段添加时区配置GMT+8
- 更新.expert-history.json文件,新增高级开发工程师Will的专家信息
- 同步更新lastUpdated时间戳以反映最新变更
2026-04-12 22:09:27 +08:00

14 lines
723 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 2026-04-12 工作日志
## 修复登录日志时间显示问题
**问题描述**:小程序后台登录日志中的登录时间显示不正确,实际登录时间 9:20:20显示为 17:16:31相差约 8 小时。
**问题原因**`LoginRecord` 实体类中的 `createTime``updateTime` 字段使用了 `@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")` 注解,但没有指定 `timezone` 属性。对于 `LocalDateTime` 类型Jackson 序列化时未正确应用全局时区配置,导致时间多了 8 小时。
**修复方案**:为 `@JsonFormat` 注解添加 `timezone = "GMT+8"` 属性。
**修改文件**`src/main/java/com/gxwebsoft/common/system/entity/LoginRecord.java`
**状态**:已修复