# 時刻を含まずにリスト表示すると、日付が1日ずれて表示される

**URL:** https://meta.discourse.org/t/dates-displaying-one-day-off-when-listed-without-times/110933
**Category:** Support
**Created:** [2019 年 3 月 7 日午前 1:58 UTC](https://meta.discourse.org/t/dates-displaying-one-day-off-when-listed-without-times/110933 "2019-03-07T01:58:48Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![DiscoWebmaster](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@DiscoWebmaster](https://meta.discourse.org/u/DiscoWebmaster)
#### Post date: [2019 年 3 月 7 日午前 1:58 UTC](https://meta.discourse.org/t/dates-displaying-one-day-off-when-listed-without-times/110933/1 "2019-03-07T01:58:48Z")

</div>

Hello,

While using the automatic date function today I found out that the date is not displaying correctly if listed without a time. For example:

2019-03-04T00:00:00Z

Despite listing it as March 3rd The text above here is actually:

`[date=2019-03-04]`

but displays incorrect as March 3rd.

This seems to occur with any date, it is always one day before.

EDIT:

It should be noted that this also occurs in the preview window:

 ![53%20PM](https://global.discourse-cdn.com/meta/original/3X/e/6/e66293d08da5bf7f8efb4a8f38ea2e78668aaa7a.jpeg)

---

<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: [2019 年 3 月 7 日午前 2:09 UTC](https://meta.discourse.org/t/dates-displaying-one-day-off-when-listed-without-times/110933/2 "2019-03-07T02:09:19Z")

</div>

Looks correct to me per the hover / mouseover tooltip

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/c/4ccb04dae6178f557ff55e88308d3799ca4e3137.png)

---

<div class="post-metadata">

### Author: ![DiscoWebmaster](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@DiscoWebmaster](https://meta.discourse.org/u/DiscoWebmaster)
#### Post date: [2019 年 3 月 7 日午前 2:20 UTC](https://meta.discourse.org/t/dates-displaying-one-day-off-when-listed-without-times/110933/3 "2019-03-07T02:20:49Z")

</div>

Huh… Why does it default to LA? Should it not default to the user’s time zone or at least the website time zone? (The Discourse that I posted on was set to ET/NY so should be correct)

---

<div class="post-metadata">

### Author: ![DiscoWebmaster](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@DiscoWebmaster](https://meta.discourse.org/u/DiscoWebmaster)
#### Post date: [2019 年 3 月 7 日午前 2:21 UTC](https://meta.discourse.org/t/dates-displaying-one-day-off-when-listed-without-times/110933/4 "2019-03-07T02:21:25Z")

</div>

…and for that matter, why is there a time listed on the hover?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2019 年 3 月 7 日午前 2:42 UTC](https://meta.discourse.org/t/dates-displaying-one-day-off-when-listed-without-times/110933/5 "2019-03-07T02:42:11Z")

</div>

Are you manually typing out the date without the timezone or removing the timezone? I believe without the timezone it’s interpreting the date as [UTC](https://en.wikipedia.org/wiki/Coordinated_Universal_Time) and converting it to your local timezone. (It’s currently the 7th in UTC, but the 6th in EST)

This is what it looks like when I click insert:

`[date=2019-03-03 timezone="America/New_York"]`

Which is correctly rendered as 2019-03-03T05:00:00Z

On hover we’re providing a reference to multiple timezones, to give some context that this is a localized date/time. If you click `advanced mode` in the insert date menu, you can change which timezones are displayed on hover.

---

<div class="post-metadata">

### Author: ![Slowhand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slowhand/32/57436_2.png) [@Slowhand](https://meta.discourse.org/u/Slowhand)
#### Post date: [2019 年 8 月 1 日午後 7:18 UTC](https://meta.discourse.org/t/dates-displaying-one-day-off-when-listed-without-times/110933/7 "2019-08-01T19:18:44Z")

</div>

「日付/時刻の挿入」機能について、似ていますが少し異なる質問があります。

なぜ右側の 部分が常に「昨日」にデフォルト設定されているのでしょうか？

私は時間を入力する必要があるため、ほぼいつも右側を使っています。しかし、今日のような日には、カレンダーを8月に変更するための余分な手順を踏まなければなりません。

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/c/7caca9821c1f2ed14c8c4d6786e51c8b6cbe40c3.png)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2019 年 8 月 5 日午前 8:30 UTC](https://meta.discourse.org/t/dates-displaying-one-day-off-when-listed-without-times/110933/8 "2019-08-05T08:30:08Z")

</div>

> [@Slowhand](#):
>
> 右側の部分はなぜ常に前日にデフォルト設定されるのですか？

確かに問題のようです。@j.jaffeux さん、ご確認いただけますか？

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2019 年 8 月 5 日午前 10:28 UTC](https://meta.discourse.org/t/dates-displaying-one-day-off-when-listed-without-times/110933/10 "2019-08-05T10:28:47Z")

</div>

以下の修正で解決されるはずです：

> <https://github.com/discourse/discourse/pull/7968>

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2019 年 8 月 6 日午前 8:41 UTC](https://meta.discourse.org/t/dates-displaying-one-day-off-when-listed-without-times/110933/11 "2019-08-06T08:41:19Z")

</div>


