Skip to content

fix(fcc): getTimeStamp가 12시간제(hh) 패턴이라 오전·오후 같은 시각에 같은 값을 내는 문제 수정 - #230

Merged
eGovFrameSupport merged 1 commit into
eGovFramework:mainfrom
wantaekchoi:fix/fcc-gettimestamp-24h
Sep 18, 2026
Merged

eGovFrameSupport merged 1 commit into
eGovFramework:mainfrom
wantaekchoi:fix/fcc-gettimestamp-24h

Conversation

@wantaekchoi

Copy link
Copy Markdown
Contributor

수정 사유 Reason for modification

  • 버그수정 Bug fixes
  • 기능개선 Enhancements
  • 기능추가 Adding features
  • 기타 Others

수정된 소스 내용 Modified source

getTimeStamp는 javadoc에 고유값으로 쓰는 17자리 TIMESTAMP를 만든다고 되어 있지만, 패턴 yyyyMMddhhmmssSSS의 hh가 12시간제라 같은 날 오전과 오후의 같은 시각이 같은 값이 됩니다. 이 값은 EgovFileMngUtil에서 업로드 파일의 저장 이름에 쓰입니다. HH로 바꿨습니다.

JUnit 테스트 JUnit tests

  • JUnit 테스트 JUnit tests
  • 수동 테스트 Manual testing

SimpleDateFormat으로 같은 날 01:00과 13:00을 두 패턴으로 찍은 결과입니다.

$ java TimeStampPattern.java
yyyyMMddhhmmssSSS  01:00 -> 20260918010000000  13:00 -> 20260918010000000
yyyyMMddHHmmssSSS  01:00 -> 20260918010000000  13:00 -> 20260918130000000

테스트 브라우저 Test Browser

  • Chrome
  • Firefox
  • Edge
  • Safari
  • Opera
  • Internet Explorer
  • 기타 Others

테스트 스크린샷 또는 캡처 영상 Test screenshots or captured video

해당 없습니다.

getTimeStamp는 고유값으로 쓰는 17자리 TIMESTAMP를 만든다고 하지만 패턴의 시(hh)가 12시간제라, 같은 날 오전과 오후의 같은 시각이 같은 값이 된다. 24시간제(HH)로 바꿨다.
@eGovFrameSupport

Copy link
Copy Markdown
Contributor

표준프레임워크에 대한 지속적인 참여에
대단히 감사드립니다.

@eGovFrameSupport
eGovFrameSupport merged commit f9dc561 into eGovFramework:main Sep 18, 2026
1 check passed
@wantaekchoi
wantaekchoi deleted the fix/fcc-gettimestamp-24h branch September 18, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants