<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,4 @@
 foorum_local.yml
 foorum.db
-theschwartz.db
\ No newline at end of file
+theschwartz.db
+root/static/local/
\ No newline at end of file</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -3,11 +3,12 @@ This file documents the revision history for Foorum.
 1.0.7
     - remove forum style setting
     - more friendly time format: xx minutes ago
+    - server timezone diff settings
 
 1.0.6   2009.03.21
     - use google.load instead of a local copy
     - move code to http://github.com/fayland/foorum/tree
-    - Admin Topic, Batch Ban
+    - Admin Topic, Batch Ban/Unban/Delete
     - use jquery.ui 1.7.0
 
 1.0.5   2009.02.21</diff>
      <filename>Changes</filename>
    </modified>
    <modified>
      <diff>@@ -30,7 +30,8 @@ sub default : Private {
             create_forum =&gt; $c-&gt;config-&gt;{function_on}-&gt;{create_forum},
             poll         =&gt; $c-&gt;config-&gt;{function_on}-&gt;{poll},
 
-            site_domain =&gt; $c-&gt;config-&gt;{site}-&gt;{domain},
+            site_domain  =&gt; $c-&gt;config-&gt;{site}-&gt;{domain},
+            timezonediff =&gt; $c-&gt;config-&gt;{timezonediff} / 3600,
 
             message_per_page =&gt; $c-&gt;config-&gt;{per_page}-&gt;{message},
             forum_per_page   =&gt; $c-&gt;config-&gt;{per_page}-&gt;{forum},
@@ -59,6 +60,9 @@ sub default : Private {
     $domain .= '/';
     $domain =~ s/\/+$/\//isg;
     $yaml-&gt;{site}-&gt;{domain} = $domain;
+    my $timezonediff = $params{timezonediff};
+    $timezonediff = 0 if ( $timezonediff !~ /^[\-\d]+$/ );
+    $yaml-&gt;{timezonediff} = $timezonediff * 3600;
 
     # function on
     my $maintain = $params{maintain};</diff>
      <filename>lib/Foorum/Controller/Admin/Settings.pm</filename>
    </modified>
    <modified>
      <diff>@@ -125,6 +125,11 @@ sub post : Local {
 
     # go this comment
     my $comment_id = $new_comment-&gt;comment_id;
+    $path  = $c-&gt;model('Object')-&gt;get_url_from_object( $c, {
+        object_id =&gt; $object_id,
+        object_type =&gt; $object_type,
+        forum_id =&gt; $forum_id
+    } );
     $path .= &quot;/comment_id=$comment_id/#c$comment_id&quot;;
 
     $c-&gt;res-&gt;redirect($path);
@@ -140,7 +145,7 @@ sub reply : LocalRegex('^(\d+)/reply$') {
     );
 
     my $comment_id = $c-&gt;req-&gt;snippets-&gt;[0];
-    my $comment    = $c-&gt;model('Get')
+    my $comment    = $c-&gt;controller('Get')
         -&gt;comment( $c, $comment_id, { with_author =&gt; 1, with_text =&gt; 1 } );
 
     my ( $object_id, $object_type, $forum_id ) = (
@@ -243,7 +248,7 @@ sub edit : LocalRegex('^(\d+)/edit$') {
     my ( $self, $c ) = @_;
 
     my $comment_id = $c-&gt;req-&gt;snippets-&gt;[0];
-    my $comment = $c-&gt;model('Get')-&gt;comment( $c, $comment_id );
+    my $comment = $c-&gt;controller('Get')-&gt;comment( $c, $comment_id );
 
     # permission
     if ( $c-&gt;user-&gt;user_id != $comment-&gt;{author_id} ) {
@@ -342,7 +347,7 @@ sub delete : LocalRegex('^(\d+)/delete$') {
     my ( $self, $c ) = @_;
 
     my $comment_id = $c-&gt;req-&gt;snippets-&gt;[0];
-    my $comment = $c-&gt;model('Get')-&gt;comment( $c, $comment_id );
+    my $comment = $c-&gt;controller('Get')-&gt;comment( $c, $comment_id );
 
     my ( $object_id, $object_type, $forum_id ) = (
         $comment-&gt;{object_id}, $comment-&gt;{object_type},</diff>
      <filename>lib/Foorum/Controller/Comment.pm</filename>
    </modified>
    <modified>
      <diff>@@ -19,6 +19,10 @@
 	    &lt;td align='right'&gt;&lt;label for='site_domain'&gt;Site Domain:&lt;/label&gt;&lt;/td&gt;
 	    &lt;td&gt;&lt;input type='text' name='site_domain' id='site_domain' value='[% c.req.base %]' size='32' /&gt;&lt;/td&gt;
 	&lt;/tr&gt;
+	&lt;tr class='misc2'&gt;
+	    &lt;td align='right'&gt;&lt;label for='site_domain'&gt;Server TimeZone diff:&lt;/label&gt;&lt;/td&gt;
+	    &lt;td&gt;&lt;input type='text' name='timezonediff' id='timezonediff' value='0' size='2' /&gt;&lt;/td&gt;
+	&lt;/tr&gt;
 	&lt;tr class='title'&gt;&lt;td colspan='2'&gt;Function On/Off&lt;/td&gt;&lt;/tr&gt;
 	&lt;tr class='misc1'&gt;
 	    &lt;td width='40%' align='right'&gt;&lt;label for='maintain'&gt;Site Maintain:&lt;/label&gt;&lt;/td&gt;</diff>
      <filename>templates/admin/settings/index.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>840332d28755e1f6cd4017bbb57c471ffd0a61a7</id>
    </parent>
  </parents>
  <author>
    <name>fayland</name>
    <email>fayland@gmail.com</email>
  </author>
  <url>http://github.com/fayland/foorum/commit/922a44ac4248ce2ee3b97f735732c86a09a8fe0b</url>
  <id>922a44ac4248ce2ee3b97f735732c86a09a8fe0b</id>
  <committed-date>2009-03-21T06:06:18-07:00</committed-date>
  <authored-date>2009-03-21T06:06:18-07:00</authored-date>
  <message>timezone diff settings</message>
  <tree>0d534415ebe3865006f02e799041a0f573593144</tree>
  <committer>
    <name>fayland</name>
    <email>fayland@gmail.com</email>
  </committer>
</commit>
