Skip to content

Commit

Permalink
Fixed problem with the date localization.
Browse files Browse the repository at this point in the history
  • Loading branch information
dziudek committed Jun 12, 2014
1 parent ee0e663 commit 6a49e1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mod_news_pro_gk5/portal_modes/events_list/controller.php
Expand Up @@ -60,9 +60,10 @@ function output() {

if($event_datetimes_count > 0) {
$event_timestamp = strtotime($event_datetimes[1][0]);
$event_timestamp_sql = strftime('%Y-%m-%d %H:%M:%S', $event_timestamp);
$event_info['timestamp'] = date(DATE_W3C, $event_timestamp);
$event_info['counter_timestamp'] = date(DATE_W3C, strtotime($event_datetimes[1][4]));
$event_info['date'] = strftime('%a', $event_timestamp) . '<small>' . strftime('%b %e', $event_timestamp) . '</small>';
$event_info['date'] = JHTML::date($event_timestamp_sql, 'D') . '<small>' . JHTML::date($event_timestamp_sql, 'M j') . '</small>';
$event_info['when'] = $event_datetimes[2][0] . ' @ ' . $event_datetimes[2][2];
}
}
Expand Down Expand Up @@ -114,4 +115,4 @@ function get_link($num) {
}
}

// EOF
// EOF

0 comments on commit 6a49e1a

Please sign in to comment.