Skip to content

Commit

Permalink
Don't use PHP 5.3-only date_timestamp_get function
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Mar 13, 2012
1 parent 8eef844 commit 7a06cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/_lib/controller/class.DashboardController.php
Expand Up @@ -314,7 +314,7 @@ public static function getHotPostVisualizationData($hot_posts, $network) {
} elseif (isset($post->link->url) && $post->link->url != "") {
$post_text_label = str_replace('|','', $post->link->url);
} else {
$post_text_label = date("M j", date_timestamp_get(date_create($post->pub_date)));
$post_text_label = date("M j", date_format (date_create($post->pub_date), 'U' ));
}

$result_set[] = array('c' => array(
Expand Down

0 comments on commit 7a06cdb

Please sign in to comment.