# Timezone issue in Autoclose topic

**URL:** https://meta.discourse.org/t/timezone-issue-in-autoclose-topic/28180
**Category:** Feature
**Created:** [May 1, 2015, 3:34am UTC](https://meta.discourse.org/t/timezone-issue-in-autoclose-topic/28180 "2015-05-01T03:34:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![rhulse](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rhulse](https://meta.discourse.org/u/rhulse)
#### Post date: [May 1, 2015, 3:34am UTC](https://meta.discourse.org/t/timezone-issue-in-autoclose-topic/28180/1 "2015-05-01T03:34:09Z")

</div>

On version 1.2.1 - commit 590b73e25e09bc6f8781585604b18738bc79fbdf

When setting the time for autoclose I enter a local time and press save.

When I reopen that same dialogue it is 12 hours later than expected. My timezone is UTC+12.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 1, 2015, 4:22am UTC](https://meta.discourse.org/t/timezone-issue-in-autoclose-topic/28180/2 "2015-05-01T04:22:55Z")

</div>

The auto save absolute time entry appears to use server time. It does not use local time, but it should. Cc: @neil

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 1, 2015, 4:41am UTC](https://meta.discourse.org/t/timezone-issue-in-autoclose-topic/28180/3 "2015-05-01T04:41:25Z")

</div>

We’ve noticed that time has been a bit wonky for as long as I can remember.

Not a top priority since most don’t even notice, but @cpradio @TechnoBear and I are the exception, we’ve tested heavily.

For an example, screen captured just now, the times on a member’s “activity” and the actual post aren’t always in sync

**from Activity**

 ![](https://global.discourse-cdn.com/meta/original/3X/8/0/80fdae244ab85889156bc852164babb8543835f9.png)

**the post**

 ![](https://global.discourse-cdn.com/meta/original/3X/f/f/ff185e80713a61fc67c08b26b79f8c91f25f38f3.png)

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [May 1, 2015, 10:55am UTC](https://meta.discourse.org/t/timezone-issue-in-autoclose-topic/28180/4 "2015-05-01T10:55:37Z")

</div>

True, but I think that’s more from caching than anything else, but I could very well be wrong with that. The Timezone issue in Autoclose may explain some of the weirdness I’ve seen around closing topics lately.

For 1, it closed immediately when I put in 2192 hours from last response, and 2, I’ve seen it not take my change, so I entered it again, and then it takes.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [May 27, 2015, 10:30pm UTC](https://meta.discourse.org/t/timezone-issue-in-autoclose-topic/28180/5 "2015-05-27T22:30:41Z")

</div>

I fixed the bug mentioned in the op today, so it will make it into the 1.3 release. Entering the auto-close time now takes into account your local time zone.

[https://github.com/discourse/discourse/commit/ea8cf1a208d198ae1d7ff1e795830766c01be7d0](https://github.com/discourse/discourse/commit/ea8cf1a208d198ae1d7ff1e795830766c01be7d0)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 28, 2015, 1:45am UTC](https://meta.discourse.org/t/timezone-issue-in-autoclose-topic/28180/6 "2015-05-28T01:45:16Z")

</div>


