# Group Timezones

**URL:** https://meta.discourse.org/t/group-timezones/133178
**Category:** Theme component
**Tags:** deprecated
**Created:** [November 12, 2019, 9:17am UTC](https://meta.discourse.org/t/group-timezones/133178 "2019-11-12T09:17:56Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [November 12, 2019, 9:17am UTC](https://meta.discourse.org/t/group-timezones/133178/1 "2019-11-12T09:17:56Z")

</div>

> ⚠ This theme component has been deprecated and its functionality is now included in the [Discourse Calendar and Events](https://meta.discourse.org/t/discourse-calendar-and-event/97376) plugin

| | | |
| --- | --- | --- |
| :discourse2: | **Summary** | **Group Timezones** can help you display people of a group in a timezone ordered list. It will also show who is on holiday/week-end/out of working hours. |
| 🛠 | **Repository Link** | [https://github.com/discourse/discourse-group-timezones](https://github.com/discourse/discourse-group-timezones) |
| 📖 | **New to Discourse Themes?** | [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

### Features

 ![22](https://global.discourse-cdn.com/meta/original/3X/6/f/6f74e71a15a0fb1865d3bee13b74e6ce69abb903.png)

This is useful for people using Discourse with a remote and distributed team to work on projects.

### Usage

⚠ This plugin relies on the `timezone` field of a User being set. This field is available at the moment only when using [discourse-calendar](https://github.com/discourse/discourse-calendar), so you need to have this plugin to use this component.

```plaintext
[wrap=group-timezones group=project-x-team][/wrap]

```

- `group` is mandatory
- `size` is optional and accepts: `small`, `medium`, `large`, `auto`

### Settings

| Name | Description |
| --- | --- |
| working day start hour | When the working day starts |
| working day end hour | When the working day ends |
| close to working day hours extension | How many hours around start/end working hours are acceptable if urgent to get in contact with someone |
| working days | Which days of the week are worked |

| Translation | Default |
| --- | --- |
| search | Search… |
| group\_availability | %{group} availability |

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [November 12, 2019, 9:27am UTC](https://meta.discourse.org/t/group-timezones/133178/2 "2019-11-12T09:27:26Z")

</div>

That’s a co-incidence @j.jaffeux because I was playing around with a visualisation for timezone overlap recently:

> **[Pavilion](https://pavilion.tech/)**
>
> Pavilion is the leading Discourse consultancy.

Love it, thanks!

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [March 10, 2021, 10:40pm UTC](https://meta.discourse.org/t/group-timezones/133178/3 "2021-03-10T22:40:37Z")

</div>

Hi there! Does this theme component still work and/or is it still supported, or fully deprecated in favor of the calendar plugin? I tried using the markup in a topic with and without the calendar plugin enabled, but got a blank rendering each time.

Trying to tell if there’s still an existing (simple) way to display this TZ slider or something close to it.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 10, 2021, 11:06pm UTC](https://meta.discourse.org/t/group-timezones/133178/4 "2021-03-10T23:06:31Z")

</div>

> [@downey](#):
>
> I tried using the markup in a topic with and without the calendar plugin enabled, but got a blank rendering each time.

I think that is because the calendar plugin is a hard requirement?

> [@joffreyjaffeux](#):
>
> This plugin relies on the `timezone` field of a User being set. This field is available at the moment only when using [discourse-calendar](https://github.com/discourse/discourse-calendar), so you need to have this plugin to use this component.

But since that I _think_ we moved the timezone user field to core… So it may need an update to work with that.

---

<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: [March 11, 2021, 10:09am UTC](https://meta.discourse.org/t/group-timezones/133178/5 "2021-03-11T10:09:28Z")

</div>

Yes it’s inside calendar I think now right, I should deprecate this. Forgot about it as I didnt do the move.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [April 14, 2021, 6:07pm UTC](https://meta.discourse.org/t/group-timezones/133178/6 "2021-04-14T18:07:15Z")

</div>

This theme component seems to break on 2.7.0.beta7 with

```plaintext
Uncaught Error: Could not find module `discourse/lib/round-time` imported from `discourse/theme-72/widgets/discourse-group-timezones`

```

---

<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: [April 14, 2021, 6:08pm UTC](https://meta.discourse.org/t/group-timezones/133178/7 "2021-04-14T18:08:10Z")

</div>

Thanks for reporting, I know what issue it can be, will fix tomorrow unless @Osama beats me to it.

---

<div class="post-metadata">

### Author: ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)
#### Post date: [April 15, 2021, 3:42am UTC](https://meta.discourse.org/t/group-timezones/133178/8 "2021-04-15T03:42:22Z")

</div>

Fixed in:

[https://github.com/discourse/discourse-group-timezones/commit/3c82f4b6c04bafc6536d129130d8a097a83a1e26](https://github.com/discourse/discourse-group-timezones/commit/3c82f4b6c04bafc6536d129130d8a097a83a1e26)

Thanks for letting us know!

---

<div class="post-metadata">

### Author: ![eve](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eve/32/344604_2.png) [@eve](https://meta.discourse.org/u/eve)
#### Post date: [June 12, 2024, 10:35am UTC](https://meta.discourse.org/t/group-timezones/133178/9 "2024-06-12T10:35:52Z")

</div>

> [@Discourse](#):
>
> display people of a group in a timezone ordered list.

Is this still possible using just the calendar plugin?

The README of this component says:

> DEPRECATED: This component is no longer necessary; all functionality has been moved into [GitHub - discourse/discourse-calendar: Adds the ability to create a dynamic calendar in the first post of a topic. · GitHub](https://github.com/discourse/discourse-calendar)

Unfortunately i can’t figure out how to set up this view:

 ![grafik](https://global.discourse-cdn.com/meta/original/4X/e/4/9/e49510f2a09591a0e97cd1a1bacde367e502f8a2.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 13, 2024, 7:20am UTC](https://meta.discourse.org/t/group-timezones/133178/11 "2024-06-13T07:20:37Z")

</div>

Hmm. Good shout. It seems we may not have updated the docs on this point. Let me see what I can find out.

* * *

@eve After a small explore, it seems this is possible to add to a topic using only the Calendar plugin using the format:

```plaintext
[timezones group="GROUP" size="big"]timezones[/timezones]

```

---

<div class="post-metadata">

### Author: ![eve](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eve/32/344604_2.png) [@eve](https://meta.discourse.org/u/eve)
#### Post date: [June 13, 2024, 8:34am UTC](https://meta.discourse.org/t/group-timezones/133178/12 "2024-06-13T08:34:01Z")

</div>

Thanks for taking a look!

```plaintext
[timezones group="GROUP" size="big"]timezones[/timezones]

```

This doesn’t work in our instance. But somehow the format

```plaintext
[wrap=group-timezones group=project-x-team][/wrap]

```

mentioned in the first topic now works. Yesterday nothing showed up. 🤷

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 13, 2024, 8:39am UTC](https://meta.discourse.org/t/group-timezones/133178/13 "2024-06-13T08:39:57Z")

</div>

I’m glad it’s working 🙂 Though it’s odd we’re getting different results. What version of Discourse are you using?

---

<div class="post-metadata">

### Author: ![eve](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eve/32/344604_2.png) [@eve](https://meta.discourse.org/u/eve)
#### Post date: [June 13, 2024, 9:47am UTC](https://meta.discourse.org/t/group-timezones/133178/14 "2024-06-13T09:47:41Z")

</div>

I’m running with **3.3.0.beta3-dev** ( [f0539afb02](https://github.com/discourse/discourse/commits/f0539afb0266ef89210db4b6d85e5117eefebc0b) )
