Skip to content

Commit

Permalink
Merge pull request #87 from MacroSoft-Team/feat/#83/allTimeFormat
Browse files Browse the repository at this point in the history
[FEAT] BaseResponse timeStamp 형식 나노초 지우고 초단위 까지만 표시
  • Loading branch information
dgh06175 authored Nov 26, 2024
2 parents e8fe352 + 7243844 commit caa712c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.macrosoft.modakserver.global;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
Expand All @@ -11,6 +12,7 @@
@AllArgsConstructor
@JsonPropertyOrder({"timeStamp", "code", "message", "result"})
public class BaseResponse<T> {
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssXXX")
private final OffsetDateTime timeStamp = LocalDateTime.now().atOffset(ZoneOffset.UTC);
private final String code;
private final String message;
Expand Down

0 comments on commit caa712c

Please sign in to comment.