# Dates within a poll aren't displayed correctly

**URL:** https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810
**Category:** Bug
**Tags:** polls, pr-welcome
**Created:** [February 18, 2025, 12:50am UTC](https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810 "2025-02-18T00:50:25Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [February 18, 2025, 12:50am UTC](https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810/1 "2025-02-18T00:50:25Z")

</div>

When I use the dates functionality within a poll, the dates/times do not seem to be rendering correctly in the post. Interestingly they seem fine in the preview:

 ![The image shows a poll asking about suitable meeting times for the next moderators meeting, with options in early and late March in the Pacific/Auckland time zone. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/9/2/3/9238cb57d7c6bdf3dcba4ba53376378f1f7d0907.png)

---

<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: [February 18, 2025, 5:08am UTC](https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810/2 "2025-02-18T05:08:11Z")

</div>

Going to put a #pr-welcome on this for now and let @lindsey know …

Just double checking the issue:

_Poll ([view on site](https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810/2))_

Note there is also a rendering issue after you vote that needs fixing (box with dates moves to an odd place.

My guess here is that chains decorating cooked struggle here with the poll rendering.

---

<div class="post-metadata">

### Author: ![anishlukk123](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anishlukk123/32/489397_2.png) [@anishlukk123](https://meta.discourse.org/u/anishlukk123)
#### Post date: [February 19, 2025, 3:58am UTC](https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810/3 "2025-02-19T03:58:48Z")

</div>

just want to be clear, the expected result is the preview is that true

---

<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: [February 19, 2025, 4:51am UTC](https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810/4 "2025-02-19T04:51:52Z")

</div>

Yes we should be aligned with the preview here.

---

<div class="post-metadata">

### Author: ![anishlukk123](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anishlukk123/32/489397_2.png) [@anishlukk123](https://meta.discourse.org/u/anishlukk123)
#### Post date: [April 11, 2025, 1:06am UTC](https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810/6 "2025-04-11T01:06:18Z")

</div>

[sondage de type=“multiple” résultats=“toujours” public=“true” nom=“sondage2” chartType=“bar” max=“2” min=“1”]

- \* 2019-10-13T00:00:00Z \* 2019-10-12T00:00:00Z \* 2019-10-11T00:00:00Z
- \* 2019-10-13T00:00:00Z \* \* 2019-10-11T00:00:00Z

[/sondage]

---

<div class="post-metadata">

### Author: ![anishlukk123](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anishlukk123/32/489397_2.png) [@anishlukk123](https://meta.discourse.org/u/anishlukk123)
#### Post date: [April 13, 2025, 9:40pm UTC](https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810/9 "2025-04-13T21:40:58Z")

</div>

Hey, just a quick update. I had much time to look through this, but I was able to reproduce this issue in my local environment by creating a poll. I looked at the logic of discourse-local-dates and local dates builde, and I had a question on what is the site\_settings that the code is referring to. I don’t want to assume that it is the timezone preference on the settings page. I was able to confirm that just adding a date works. So this issue is only isolated to polls. my current theory is that issue the way he handle timezones.

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [June 26, 2025, 6:12am UTC](https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810/12 "2025-06-26T06:12:31Z")

</div>

I note that a fix to a similar problem within Polls has just been made:

> [@MathJax not working in poll options](https://meta.discourse.org/t/mathjax-not-working-in-poll-options/370632/6):
>
> I’m afraid you won’t learn much from the change, it’s a little bit of a dark magic change.
> 
> [FIX: allows polls to work with discourse-math (#110) · discourse/discourse-math@e7ef2ec · GitHub](https://github.com/discourse/discourse-math/commit/e7ef2ec223d661954b870216d6da61bda8a677c5)
> 
> Poll is an old plugin and it’s probably doing something incorrect which forces me to do this

Any chance of a wave of the dark magic for this too?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [December 18, 2025, 5:42pm UTC](https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810/13 "2025-12-18T17:42:55Z")

</div>

Dates in polls were fixed today  
[https://github.com/discourse/discourse/pull/36718](https://github.com/discourse/discourse/pull/36718)

_Poll ([view on site](https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810/13))_

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [December 22, 2025, 1:00pm UTC](https://meta.discourse.org/t/dates-within-a-poll-arent-displayed-correctly/352810/14 "2025-12-22T13:00:02Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
