Permalink
Browse files

Don't use PHP 5.3-only date_timestamp_get function

  • Loading branch information...
1 parent 8eef844 commit 7a06cdbf9bc6d02119822da2c5a6af76449bfea1 @ginatrapani ginatrapani committed Mar 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 webapp/_lib/controller/class.DashboardController.php
@@ -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(

0 comments on commit 7a06cdb

Please sign in to comment.