Skip to content

Commit

Permalink
Merge pull request #111 from Sinchone/develop
Browse files Browse the repository at this point in the history
Version 1.0.3
  • Loading branch information
Jeongho0805 authored Jun 28, 2023
2 parents 4124773 + a36a2f1 commit 672b1dc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

@EntityScan("com.lastone.core")
@EnableJpaAuditing
@EnableJpaRepositories(basePackages = {"com.lastone.core"})
@SpringBootApplication(scanBasePackages = {"com.lastone.core", "com.lastone.apiserver"} )
public class ApiServerApplication {

@PostConstruct
public void started() {
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
}

public static void main(String[] args) {
SpringApplication.run(ApiServerApplication.class, args);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public class RecruitmentDetailDto {
private PreferGender preferGender;
private List<String> imgUrls;
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy.MM.dd 'T' HH:mm")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy.MM.dd HH:mm")
private LocalDateTime startedAt;
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy.MM.dd 'T' HH:mm")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy.MM.dd HH:mm")
private LocalDateTime createdAt;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class RecruitmentListDto {
private String gym;

@JsonDeserialize(using = LocalDateTimeDeserializer.class)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy.MM.dd 'T' HH:mm")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy.MM.dd HH:mm")
private LocalDateTime startedAt;

private RecruitmentStatus status;
Expand Down

0 comments on commit 672b1dc

Please sign in to comment.