Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Event timezones

9 years 9 months ago
  • Marc's Avatar
    Topic Author
  • Marc
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 5
Licenses:
JomSocial Expired

Why has such a strange list of event timezones been assigned to the event drop down list?
For example, what happened to Africa? Or do we have to look up in a map to see what other cities fall in to our time zone?

Can we please go back to a normal list like that used by every other website?

9 years 9 months ago
Licenses:

Hi Marc,

I have solution for you. how about if we displaying the UTC number on it. here the steps:
copy events.forms.php from /components/com_community/templates/jomsocial/layouts/ to /templates/rt_oculus/html/com_community/layouts/

edit it at line 385, change the code from

<select class="joms-select" name="offset" title="<?php echo JText::_('COM_COMMUNITY_EVENTS_SET_TIMEZONE'); ?>"><?php

    $defaultTimeZone = isset($event->offset) ? $event->offset : $systemOffset;
    foreach ($timezones as $offset => $value) {

?><option value="<?php echo $offset; ?>"<?php echo $defaultTimeZone == $offset ? ' selected="selected"' : ''; ?>><?php echo $value; ?></option><?php

    }

?></select>
to
<select class="joms-select" name="offset" title="<?php echo JText::_('COM_COMMUNITY_EVENTS_SET_TIMEZONE'); ?>"><?php

    $defaultTimeZone = isset($event->offset) ? $event->offset : $systemOffset;
    ksort($timezones);
    foreach ($timezones as $offset => $value) {

?><option value="<?php echo $offset; ?>"<?php echo $defaultTimeZone == $offset ? ' selected="selected"' : ''; ?>><?php echo '(UTC '.$offset.') '.$value; ?></option><?php

    }

?></select>





Regards

Attachments:
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW