Skip to content

Commit 0a8052f

Browse files
authored
Merge pull request #249 from FunD-StockProject/refactor/notification-createdAt
Refactor: 알림 createdAt 형식 변경
2 parents cdabca1 + 732bea8 commit 0a8052f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/com/fund/stockProject/notification/dto/NotificationResponse.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.fund.stockProject.notification.dto;
22

3+
import com.fasterxml.jackson.annotation.JsonFormat;
34
import com.fund.stockProject.notification.domain.NotificationType;
45
import com.fund.stockProject.notification.entity.Notification;
56
import com.fund.stockProject.stock.domain.COUNTRY;
@@ -35,7 +36,8 @@ public class NotificationResponse {
3536
private String body;
3637
@Schema(description = "읽음 여부", example = "false")
3738
private Boolean isRead;
38-
@Schema(description = "알림 생성 시각 (UTC ISO-8601)", example = "2025-08-24T12:34:56Z", type = "string", format = "date-time")
39+
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "UTC")
40+
@Schema(description = "알림 생성 시각 (UTC ISO-8601)", example = "2025-08-24T12:34:56.000Z", type = "string", format = "date-time")
3941
private Instant createdAt;
4042

4143
@Schema(description = "종목 국가 정보 (KOREA 또는 OVERSEA)", example = "KOREA")

0 commit comments

Comments
 (0)