Repository navigation
[DONE] 저널 날짜가 어디서 빌드하든 글을 쓴 서울 날짜로 찍힌다 - #307
Merged
Merged
Conversation
Four posts written between midnight and 9 a.m. in Seoul showed the day before on a UTC build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gdqi6QgDMDMN98AKkhopZd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gdqi6QgDMDMN98AKkhopZd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gdqi6QgDMDMN98AKkhopZd
patternflow-bot
marked this pull request as ready for review
October 27, 2026 14:57
This was referenced Oct 27, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 28, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dev / https://claude.ai/code/session_01Gdqi6QgDMDMN98AKkhopZd
저널 날짜가 빌드한 기계의 시간대를 따라서, UTC 빌드에선 서울 새벽 0시와 9시 사이에 쓴 글 넷(머리아파, 멈췄다, 잘 되면 좋겠다, 부정적)이 하루 앞당겨져 찍혔어요. /journal 전체에서 520곳 가운데 60곳이었어요. 머지하면 어디서 빌드하든 머리말에 쓴 서울 날짜가 찍혀요.
좋아지는 것: 저널 날짜가 글을 쓴 서울 날짜로 찍힌다 — 새벽 글이 전날로 보이지 않는다
체크리스트
1fa80af가 이미 들어 있음) · 검사 초록 · 겹침 기다리기 「안 겹친다」한 일
web/src/lib/journal.ts의formatJournalDate에timeZone: "Asia/Seoul"을 더했어요. 이 함수는 저널 목록, 글 쪽 머리, 글 쪽 아래 목록에서만 불려요. 글 차례와 번호는Date.parse로 정해서 그대로예요.web/src/lib/journal.test.ts가vi.stubEnv("TZ", …)로 프로세스 시간대를 UTC, 로스앤젤레스, 키리티마티(UTC+14), 서울로 바꿔 가며 날짜를 찍어 봐요. 저널 74개 파일 모두 머리말에 쓴 날과 찍힌 날이 같은지도 봐요.증거
이 컨테이너는 UTC 예요(
date→Tue Oct 27 14:41:48 UTC 2026). 빌드한 쪽을next start로 띄우고 목록 두 쪽, 글 74쪽의 날짜를 다 읽어 머리말의 서울 날짜와 견줬어요. 히어로 2곳, 목록 줄 74곳, 글 머리 74곳, 글 아래 목록 370곳이에요.dev 에서 틀린 60곳은 글 넷이 나오는 자리 모두예요. 예를 들면
/journal/headache dateline · shown 2026년 5월 13일 · Seoul 2026년 5월 14일,/journal/en row · negative · shown August 26, 2026 · Seoul August 27, 2026이에요.글 목록과 차례는 전후가 같아요. dev 의
journal.ts와 이 브랜치의 것으로getAllJournalPosts를 돌려 견줬어요.새 시험을 dev 의
journal.ts에 돌리면고친 뒤엔
Tests 5 passed (5)예요.다섯 검사(
web/에서):PR 의 검사(head
d29335e):Drift checks | completed | success,Web CI | completed | success.전후 사진은 「머리아파」 글 쪽의 머리와
/journal목록이에요. 바뀐 건 날짜 글자뿐이에요.실행법
가정
web/src/lib/journal.ts하나와 새 시험이고, 바뀌는 건 저널에 찍히는 날짜 글자뿐이에요. 133바퀴가 「다음 바퀴」 1번으로 둔 감이기도 해요.+09:00이어서예요. 로드맵의todaySeoul(app/roadmap/roadmap-data.ts:39)도 같은 까닭으로Asia/Seoul을 써요. 나중에 다른 시간대로 쓴 글이 생기면 그 글은 서울 날짜로 찍혀요. 모든 글 시험은+09:00인 글만 봐요.app/feed.xml/route.ts:32)와 사이트맵(app/sitemap.ts:58)은 날짜를 글자로 찍지 않고 시각 그대로 넘겨서 원래 맞았어요. 건드리지 않았어요.app/journal/[slug]/opengraph-image.tsx:54)은 날짜를 머리말 글 그대로(2026-05-14T01:30:00+09:00) 찍어요. 「다음 바퀴」 3번에 뒀어요.Changelog
Web
경험
언제: 날짜나 시각을 찍는 코드를 여러 시간대에서 시험할 때
교훈:
vi.stubEnv("TZ", zone)로 바꾸면 Node 가 그 자리에서 시간대를 다시 읽어 새Intl.DateTimeFormat도 따라가니, 프로세스를 따로 띄우지 말고 시험 파일 하나에서it.each로 여러 시간대를 돌려요근거: #307 에서 dev 의
formatJournalDate가 같은 vitest 파일 안에서 UTC · 로스앤젤레스 · 키리티마티는 빨갛고 서울만 초록이었어요바퀴
바퀴 134 · 후보: 저널 — 고친 곳: web/src/lib/journal.ts(formatJournalDate) · 까닭: UTC 빌드에서 저널 날짜 520곳 가운데 60곳이 서울 새벽에 쓴 글 넷을 하루 앞당겨 찍었다
다음 바퀴
.journal-lang-switch, #A69F90)이 목록의 흰 바탕에서 2.63:1, 글 쪽 크림에서 2.29:1 이고, 목록의 「Archive」(.journal-archive-label)도 2.63:1 이에요. 위 사진에서도 「EN」 이 거의 안 보여요. 토큰은 두고 저널 규칙에서 있는--ink-muted(#6B655A)로요.<main>이 없다:ArticleLayout.tsx가<article>과<footer>를 바로 그려요. 목록 쪽은<main className="journal-index">예요. 133바퀴가 axe 로 글 74쪽 모두에서 landmark-one-main 을 봤어요.app/journal/[slug]/opengraph-image.tsx:54가post.date를 그대로 찍어서 공유 카드에2026-05-14T01:30:00+09:00이 대문자로 나와요. 이번에 서울로 맞춘formatJournalDate를 읽으면 돼요.incoming/ROUND.md「창작자가 열어야 하는 것」의 「저널 날짜가 서버 시간대와 상관없이 글을 쓴 서울 날짜로 찍힌다」 줄은 이 PR 로 끝났어요. 143바퀴의 후보 채우기에서 빼요.https://claude.ai/code/session_01Gdqi6QgDMDMN98AKkhopZd
Generated by Claude Code