By IRNA on Tuesday, 27 August 2019
Posted in General Issues
Replies 3
Likes 0
Views 463
Votes 0
Is it possible to reduce the number of timezone options available when posting an event?

The hundreds of options are manageable when it's possible to search for a city, but when you post from the status update box you have to scroll through hundreds before you find the right option.
Hi there,

Unfortunately, it is not possible to achieve this currently as those timezone are used and fetch using PHP functions as you can see here https://www.php.net/manual/en/datetimezone.listidentifiers.php so it will list all timezone. If you wanted to modify them you need to some customization here .../media/com_easysocial/apps/user/events/controllers/events.php at getTimezones() functions.

As for example, you can apply codes below. Codes below are to list all regions on Africa only. For more details you can refer them here https://www.php.net/manual/en/datetimezone.listidentifiers.php#118767


$zones = DateTimeZone::listIdentifiers(DateTimeZone::AFRICA);


Do give it a try and see how it goes. By the way, do remember to do full backup on your customization and dont forget to replace them if you update your Easysocial as those customization will be overwritten on your next update.
·
Tuesday, 27 August 2019 10:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you. I'll look into modifying that file.
In the future, you should consider only including time zones from the countries activated in the "Regions" section of EasySocial.
·
Tuesday, 27 August 2019 22:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

In the future, you should consider only including time zones from the countries activated in the "Regions" section of EasySocial.

It would best if you could submit your feature request regarding this simply by creating a new ticket on the forums, and set it to "Feature Request" so everyone else on the site could vote for it as well. The team will usually prioritize features that are in popular demand during the development process of the next major release.

Thanks for your understanding.
·
Wednesday, 28 August 2019 10:02
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post