Update from Ryan. Fixes wacky times in the comments and a JS error.

git-svn-id: svn://10.0.0.236/trunk@213511 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mike.morgan%oregonstate.edu
2006-10-11 20:20:09 +00:00
parent 76d571f29f
commit 414fd39f7e
3 changed files with 2 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ class CommentsController extends AppController {
$this->data['Comment']['text'] = nl2br($text);
$this->data['Comment']['owner'] = $uid;
$this->data['Comment']['assoc'] = $pid;
$this->data['Comment']['time'] = gmmktime();
$this->data['Comment']['time'] = mktime();
if ($this->Comment->save($this->data)) {
$this->redirect('/parties/view/'.$pid.'#c'.$this->Comment->getLastInsertID());

View File

@@ -81,7 +81,7 @@
<div id="c<?php echo $comment['comments']['cid'];?>" class="comment <?php echo $class;?>">
<span class="comment-content"><?php echo $comment['comments']['text']; ?></span>
<span class="comment-tag"><br/><br/>Posted by <a href="<?php echo $html->url('/users/view/'.$comment['users']['uid']); ?>">
<?php echo $comment['users']['name']; ?></a> on <?php echo date('Y-m-d h:ia', $comment['comments']['time'] - (@$_SESSION['User']['tz'] * 60 * 60)); ?></span>
<?php echo $comment['users']['name']; ?></a> on <?php echo gmdate('Y-m-d h:ia', $comment['comments']['time'] + (@$_SESSION['User']['tz'] * 60 * 60)); ?></span>
</span>
</div>
<?php endforeach;

View File

@@ -30,7 +30,6 @@ function mapInit(aLat, aLng, aZoom, aState) {
function geocode(aLoc) {
var gcoder = new GClientGeocoder();
document.getElementById('geocoded').value = 1;
gcoder.getLatLng(aLoc, function (point) {
if (!point) {
suggest(aLoc);