Commit efb8cf6
committed
fix: 채팅 메시지 시간 타임존 버그 수정
배포 서버(UTC)와 로컬 환경(UTC+9)의 시간 차이로 인해 채팅 메시지 시간이 정확하게 표시되지 않는 문제 해결
- ChatMessageResponse 인터페이스의 timestamp 타입을 Date에서 string으로 변경
- timestamp를 toISOString()으로 명시적으로 UTC ISO 8601 형식 문자열로 변환
- ChatMessageResponseDto의 timestamp 타입도 string으로 통일1 parent 9ccfd16 commit efb8cf6
File tree
2 files changed
+4
-4
lines changed- backend/api-server/src/chat
- dto
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments