10.7: Setting the default timezone for calendars viewed on Wiki Server
Sep 08, '11 07:30:00AM • Contributed by: applescripter
Sep 08, '11 07:30:00AM • Contributed by: applescripter
Apple does not seem to have provided a setting to change the default timezone despite the obvious need to be able to do so. This hint is a workaround giving a way of changing the timezone for all users who view the calendar via the web interface.
First backup the following file:
/usr/share/collabd/coreclient/app/views/projects/calendar.html.erb
You will need root privileges to edit the file; this can be accomplished by:
sudo nano /usr/share/collabd/coreclient/app/views/projects/calendar.html.erb
Add the following line to the original file below the line <% content_for(:head) do %>:
<meta name="tzid" content="Europe/London">
Where "Europe/London" is replaced by the desired timezone.
The file should now read (in its entirety)
Save the file and exit the text editor. Restart the Wiki Server using Server.app and events should now display in the correct timezone.
[crarko adds: I don't have a Lion Server up yet to try this. Remember to backup the original file before doing any editing, and post results (or alternate ways of doing this) in the comments, please.]
First backup the following file:
/usr/share/collabd/coreclient/app/views/projects/calendar.html.erb
You will need root privileges to edit the file; this can be accomplished by:
sudo nano /usr/share/collabd/coreclient/app/views/projects/calendar.html.erb
Add the following line to the original file below the line <% content_for(:head) do %>:
<meta name="tzid" content="Europe/London">
Where "Europe/London" is replaced by the desired timezone.
The file should now read (in its entirety)
<% content_for(:head) do %> <meta name="tzid" content="Your Time-Zone"> <%= javascript_include_tag "calendar/calendar_widgets_core" %> <%= javascript_include_tag "calendar/calendar_widgets" %> <%= javascript_include_tag "calendar/caldav" %> <%= javascript_include_tag "calendar/calaccess" %> <%= stylesheet_link_tag "calendar/calendar" %> <%= stylesheet_link_tag "calendar/icalserver_compressed" %> <% end %> <%= render :partial => 'cc/banner' %> <div id="content-primary" class="wrapchrome"> <div id="module_calendars"></div> </div>
[crarko adds: I don't have a Lion Server up yet to try this. Remember to backup the original file before doing any editing, and post results (or alternate ways of doing this) in the comments, please.]
•
[4,774 views]
