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:
Going to put a pr-welcome on this for now and let @lindsey know …
Just double checking the issue:
- 2025-02-17T13:00:00Z
- 2025-02-18T13:00:00Z
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.
just want to be clear, the expected result is the preview is that true
Yes we should be aligned with the preview here.
- * 2019-10-12T22:00:00Z * 2019-10-11T22:00:00Z * 2019-10-10T22:00:00Z
- * 2019-10-12T22:00:00Z * * 2019-10-10T22:00:00Z
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.