# 마지막 메시지 이후 경과 시간 기준으로 토픽이 자동으로 닫히는 기능이 작동하지 않습니다

**URL:** https://meta.discourse.org/t/closing-a-topic-based-on-time-since-last-message-appears-broken/187092
**Category:** Bug
**Created:** [4월 16, 2021, 12:42오후 UTC](https://meta.discourse.org/t/closing-a-topic-based-on-time-since-last-message-appears-broken/187092 "2021-04-16T12:42:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ljpp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ljpp/32/96506_2.png) [@ljpp](https://meta.discourse.org/u/ljpp)
#### Post date: [4월 16, 2021, 12:42오후 UTC](https://meta.discourse.org/t/closing-a-topic-based-on-time-since-last-message-appears-broken/187092/1 "2021-04-16T12:42:49Z")

</div>

마지막 메시지 이후 경과 시간을 기준으로 토픽 자동 종료 타이머를 설정하려고 합니다. 마지막으로 사용한 이후 대화 상자가 변경된 것 같고, 값(X시간)을 추가할 수 없습니다.

스크린샷은 최신 버전의 Chromebook(v89)에서 촬영한 것입니다.

 ![Screenshot 2021-04-16 15.38.41](https://global.discourse-cdn.com/meta/original/3X/0/7/076fedcc78110c2e0b14007d4d16dc038564b8a4.png)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [4월 16, 2021, 11:28오후 UTC](https://meta.discourse.org/t/closing-a-topic-based-on-time-since-last-message-appears-broken/187092/2 "2021-04-16T23:28:25Z")

</div>

Meta에서 해당 문제를 재현할 수 있었습니다. Ubuntu에서 최신 버전의 Chrome을 사용 중입니다. 재현하는 데 몇 번의 시도가 필요했습니다. 이 주제에서 주제 타이머를 열 때 문제가 발생하는 것처럼 보인 원인은 “사용자 정의 날짜 및 시간” 옵션을 선택한 후 주제 타이머 모달을 닫은 것이었습니다. 이렇게 한 후에는 Meta에서 주제 타이머 모달을 열 때마다 “Last” 항목에 "Invalid date"라는 텍스트가 일관되게 표시됩니다.

콘솔에서 에러는 확인되지 않습니다. 다만 관련이 있을 수 있는 `deprecation warning`이 하나 있습니다: `value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged.`

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [4월 19, 2021, 1:21오전 UTC](https://meta.discourse.org/t/closing-a-topic-based-on-time-since-last-message-appears-broken/187092/4 "2021-04-19T01:21:50Z")

</div>

@martin 잠깐 봐줄 수 있어?

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [4월 19, 2021, 3:20오전 UTC](https://meta.discourse.org/t/closing-a-topic-based-on-time-since-last-message-appears-broken/187092/6 "2021-04-19T03:20:31Z")

</div>

모달에 표시된 “Last” 옵션은 "마지막으로 사용된 사용자 지정 날짜 및 시간"의 단축어입니다. 마지막 메시지 이후 X시간이 지난 후 주제를 닫으려면, 자동 닫기 기능에서 분리된 이 옵션을 선택해야 합니다:

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/e/6ef910cee959cf0480aaf68d1304077ffdff3070.png)

그럼에도 불구하고 Invalid Date 문제는 해결해야 할 사항이며, "Last"를 “마지막 사용자 지정 날짜 및 시간” 등으로 변경하여 더 명확하게 만드는 것도 고려해 볼 필요가 있습니다.

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [4월 21, 2021, 11:28오후 UTC](https://meta.discourse.org/t/closing-a-topic-based-on-time-since-last-message-appears-broken/187092/7 "2021-04-21T23:28:20Z")

</div>

이 문제를 수정하는 변경 사항을 방금 병합했습니다. @simon 님이 제시한 재현 단계를 따를 경우 더 이상 발생하지 않아야 하며, 문구도 개선했습니다:

> <https://github.com/discourse/discourse/pull/12783>
>
> See https://meta.discourse.org/t/closing-a-topic-based-on-time-since-last-messag…e-appears-broken/187092
> 
> The "last custom date and time" shortcut for the topic timer and
> bookmarks could get into a state where it had an Invalid Date if
> the user opened the topic timer modal, clicked Custom Date and then
> closed the modal without making changes. This has been fixed, the
> last custom date + time will no longer be set in this case and if
> somehow the last custom date + time is invalid that option will not
> show.
> 
> Also improve the wording from just "Last" to "Last custom datetime"

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [4월 21, 2021, 11:28오후 UTC](https://meta.discourse.org/t/closing-a-topic-based-on-time-since-last-message-appears-broken/187092/8 "2021-04-21T23:28:24Z")

</div>


