Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.7: Setting the default timezone for calendars viewed on Wiki Server OS X Server
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)
<% 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>
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.]
    •    
  • Currently 3.17 / 5
  You rated: 3 / 5 (6 votes cast)
 
[4,688 views]  

10.7: Setting the default timezone for calendars viewed on Wiki Server | 1 comments | Create New Account
Click here to return to the '10.7: Setting the default timezone for calendars viewed on Wiki Server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.7: Setting the default timezone for calendars viewed on Wiki Server
Authored by: stewmctavish on Nov 23, '11 06:47:15AM

Awesome, thank you fixed our issue on our Lion Server 10.7.2



[ Reply to This | # ]