# Timezone bug

**URL:** <https://meta.discourse.org/t/timezone-bug/248674>\
**Category:** Bug\
**Created:** [December 12, 2022, 4:33pm UTC](https://meta.discourse.org/t/timezone-bug/248674 "2022-12-12T16:33:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ted](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ted/32/283882_2.png) [@ted](https://meta.discourse.org/u/ted)\
**Post date:** [December 15, 2022, 2:58am UTC](https://meta.discourse.org/t/timezone-bug/248674/5 "2022-12-15T02:58:38Z")

</div>

Great catch! 👁

When we added dedicated support for date ranges we also added a fallback for the old, “automagic” way of detecting them (i.e. are there two dates in the paragraph, if so consider it a range.)

This fallback relies on checking the number of child elements in the paragraph. When expanding the modal, the modal element is added as a child element as well. This is why there are different results when clicking a date depending on whether a modal is already open or not.

Working on a fix.

---

_[View the full topic](https://meta.discourse.org/t/timezone-bug/248674)._
