# Creating events doesn't respect user's 12 hour time locale

**URL:** https://meta.discourse.org/t/creating-events-doesnt-respect-users-12-hour-time-locale/359845
**Category:** UX
**Tags:** events
**Created:** [March 31, 2025, 11:18pm UTC](https://meta.discourse.org/t/creating-events-doesnt-respect-users-12-hour-time-locale/359845 "2025-03-31T23:18:59Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![SkyeDragon](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@SkyeDragon](https://meta.discourse.org/u/SkyeDragon)
#### Post date: [March 31, 2025, 11:18pm UTC](https://meta.discourse.org/t/creating-events-doesnt-respect-users-12-hour-time-locale/359845/1 "2025-03-31T23:18:59Z")

</div>

There is a small bug where the plugin does not respect the user’s 12-hour time locale when creating an event, and instead always shows 24-hour time locale. This makes entering events cumbersome and error-prone for US users who don’t use 24-hour time.

 ![The image shows a "Create Event" interface with a date field highlighted in blue, showing "03/31/2025", and an arrow pointing to a calendar icon, indicating the option to select a date. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/2/0/f/20fe8d432900dfbd2617707c5dd18b788e12c6e8.png)

(It does render correctly after event is created, fortunately)

Otherwise looks like a great plugin, thank you 🙂

Also, it would be nice if there was a setting to tune the limit of reminders that an event poster can place on an event. 5 is a lot 😅

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 1, 2025, 1:49pm UTC](https://meta.discourse.org/t/creating-events-doesnt-respect-users-12-hour-time-locale/359845/2 "2025-04-01T13:49:00Z")

</div>

Thanks for pointing this out! I have had the same experience when inserting date/time in a topic, which shares the same problem. I believe this is a known issue and there is an explanation for it. The input follows your device region, not the locale set in your discourse preferences. But the display does follow your locale discourse preferences (and also of any user looking at your post containing an event or date/time). Can you confirm this on your end?

It would certainly be less confusing and better UX if they were the same for the user creating the event or adding date/time to a post.

Here’s a demonstration. Note in screenshot below the 4:00pm selected time but 16:00 in the input. The reason this is happening to me is that I have my device region set to Germany (which uses 24 hour time), while my Discourse locale is US-WA (which users 12 hour time). The input seems to follow the device locale.

This appears as `[date=2025-04-01 time=16:00:00 timezone="America/Los_Angeles"]` in markdown which displays correctly to me as 4pm: 2025-04-01T23:00:00Z.

 ![Screenshot 2025-04-01 at 6.31.29 AM](https://global.discourse-cdn.com/meta/original/4X/d/e/2/de204fba1c3bf19724a9cae202ee94694a5b335d.png)

Changing my device region to United States brought these two in line, but is a cumbersome process requiring a restart.

 ![Screenshot 2025-04-01 at 6.35.23 AM](https://global.discourse-cdn.com/meta/original/4X/f/b/6/fb640d037a8ef55123358fed6d34403174916fb9.png)  
 ![Screenshot 2025-04-01 at 6.35.59 AM](https://global.discourse-cdn.com/meta/original/4X/3/d/1/3d114c1de875b1e4ab6d51379f0c72f3cc265b9d.png)

With my region set to United States, when I insert date/time in a topic the input time is also in 12 hour time. The markdown is the same `[date=2025-04-01 time=16:00:00 timezone="America/Los_Angeles"]` and displays correctly as 4pm: 2025-04-01T23:00:00Z.

 ![Screenshot 2025-04-01 at 6.41.19 AM](https://global.discourse-cdn.com/meta/original/4X/5/6/4/56415e1901e6e03e80b2276f9f3fed77fa169da5.png)

---

<div class="post-metadata">

### Author: ![SkyeDragon](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@SkyeDragon](https://meta.discourse.org/u/SkyeDragon)
#### Post date: [April 1, 2025, 10:17pm UTC](https://meta.discourse.org/t/creating-events-doesnt-respect-users-12-hour-time-locale/359845/3 "2025-04-01T22:17:07Z")

</div>

Thank you for the detailed reply (and from a fellow Washingtonian no less :))

So, this bug is actually regarding the “insert event” (official plugin), not the “insert date/time” (built-in). I _completely_ relate to the confusion as when I first tried using the plugin, I also clicked the date/time instead of the event and was confused as to why it didn’t generate the event.

Since we both got confused about that, there might be opportunity to improve the UI:

- In an ideal world, perhaps these could be merged into a single button, which prompts the user if they are trying to make an event or a time. (This would require a lot of code rework though)
- More simply, if the event button was directly adjacent to the date/time button, instead of hidden under the more gear it would probably alert the user there are two different flows available. (Have not looked into if this is possible, but seems easier implementation-wise)

That said, to answer your queries:

- ✅ When I use the _insert date/time_, it does indeed show 12-hour time for me
- ❌ It’s only when I use _insert event_ that it requires 24-hour time

Regarding device region, I am not on iOS so I am not sure what this setting corresponds to on other operating systems. (I am on linux and verified my `locale` is returning all `en_us` or `en_US.UTF-8`… but maybe there is some other setting hidden). Can you confirm if you are seeing the same behavior on the ‘insert event’ page (not just ‘insert date/time’?) It doesn’t seem to be enabled for this forum, so you might have to spin up a test instance, though since it’s an official plugin should be easy to get a hold of.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 1, 2025, 11:05pm UTC](https://meta.discourse.org/t/creating-events-doesnt-respect-users-12-hour-time-locale/359845/4 "2025-04-01T23:05:20Z")

</div>

Oh, interesting! So I went down the rabbit hole explaining how it works for inserting date/time, and the behavior is actually different. :facepalm: I just checked (being still in the United States region according to my device) and see that you are indeed right! The “Add event” popup does ask for the time in 24 hour time, even though inserting date/time insert is now in 12 hour time.

Insert date/time is a core feature while “Add event” is part of the #calendar-and-event plugin. These are very separate features. So let’s focus here on the “Add event” popup which appears to have a UX bug, which you’ve perfectly documented in the first post of this topic.

Improving the UI in the composer menu is a totally different conversation. If you want to start a new topic about that, feel free.

---

<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: [April 1, 2025, 11:25pm UTC](https://meta.discourse.org/t/creating-events-doesnt-respect-users-12-hour-time-locale/359845/6 "2025-04-01T23:25:19Z")

</div>

It doesn’t make a lot of sense to have the two mechanisms different - but I guess that is another / separate UX issue!

> [@SkyeDragon](#):
>
> In an ideal world, perhaps these could be merged into a single button, which prompts the user if they are trying to make an event or a time. (This would require a lot of code rework though)

This is absolutely needed!! It has been a problem for a long time (and perhaps justifies its own #Contribute > UX topic). I hide the Insert date/time icon to resolve the confusion, but this means we lose that quite useful functionality.

> [@Move Create Event (and others) out of the cog icon?](https://meta.discourse.org/t/move-create-event-and-others-out-of-the-cog-icon/293486):
>
> Is there any way to move the “create event” link out of the cog icon and onto the main composer bar? Also I think it’s confusing to have the event AND the “insert date/time” icon, so it’d be nice to remove that too.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 1, 2025, 11:48pm UTC](https://meta.discourse.org/t/creating-events-doesnt-respect-users-12-hour-time-locale/359845/7 "2025-04-01T23:48:23Z")

</div>

Like I said.. please start new topics. Let’s just focus on this one UI bug here.

---

<div class="post-metadata">

### Author: ![SkyeDragon](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@SkyeDragon](https://meta.discourse.org/u/SkyeDragon)
#### Post date: [April 1, 2025, 11:52pm UTC](https://meta.discourse.org/t/creating-events-doesnt-respect-users-12-hour-time-locale/359845/8 "2025-04-01T23:52:02Z")

</div>

No problem and thank you for confirming the add event popup bug 🙂

---

<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: [April 1, 2025, 11:57pm UTC](https://meta.discourse.org/t/creating-events-doesnt-respect-users-12-hour-time-locale/359845/9 "2025-04-01T23:57:27Z")

</div>

I thought I had in the past, but can’t find it. Will do now.

---

<div class="post-metadata">

### Author: ![justinm](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@justinm](https://meta.discourse.org/u/justinm)
#### Post date: [July 27, 2025, 8:52pm UTC](https://meta.discourse.org/t/creating-events-doesnt-respect-users-12-hour-time-locale/359845/10 "2025-07-27T20:52:15Z")

</div>

Bump - I’m running into this as well.

The `discourse-calendar` plugin uses a [`DateTimeInputRange`](https://github.com/discourse/discourse/blob/71ee166e224aa4f6afafe1b1c98b6942b0e4a133/plugins/discourse-calendar/assets/javascripts/discourse/components/modal/post-event-builder.gjs#L356-L361) element, but the UI that @tobiaseigen mentioned in the first reply uses the [`CalendarDateTimeInput`](https://github.com/discourse/discourse/blob/71ee166e224aa4f6afafe1b1c98b6942b0e4a133/plugins/discourse-local-dates/assets/javascripts/discourse/components/modal/local-dates-create.gjs#L457-L466) element.

For reference, here is the implementation for [`DateTimeInputRange`](https://github.com/discourse/discourse/blob/71ee166e224aa4f6afafe1b1c98b6942b0e4a133/app/assets/javascripts/discourse/app/components/date-time-input-range.gjs#L9) and here is the implementation for [`CalendarDateTimeInput`](https://github.com/discourse/discourse/blob/71ee166e224aa4f6afafe1b1c98b6942b0e4a133/app/assets/javascripts/discourse/app/components/calendar-date-time-input.gjs#L15).
