Skip to content

Commit

Permalink
fix: 메일 내 날짜 한글로 표시
Browse files Browse the repository at this point in the history
  • Loading branch information
ay-eonii committed Aug 20, 2023
1 parent e022506 commit 817c201
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.time.format.FormatStyle;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.Random;


Expand Down Expand Up @@ -78,8 +79,8 @@ private void setPaperContextVariables(Context context, Application application)
.queryParam("email", application.getUser().getEmail()).build();
context.setVariable("url", url);

String date = application.getFixedInterviewDate().format(DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG));
String time = application.getFixedInterviewDate().format(DateTimeFormatter.ofLocalizedTime(FormatStyle.SHORT));
String date = application.getFixedInterviewDate().format(DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG).withLocale(Locale.KOREAN));
String time = application.getFixedInterviewDate().format(DateTimeFormatter.ofLocalizedTime(FormatStyle.SHORT).withLocale(Locale.KOREAN));
context.setVariable("fixedInterviewDate", date + " " + time);

context.setVariable("interviewPlace", "김성민 하우스");
Expand Down

0 comments on commit 817c201

Please sign in to comment.