Skip to content

Commit

Permalink
Don't show version release date if not set
Browse files Browse the repository at this point in the history
In roadmap, dont show release date if it's not set.
When the date is not explicitly set, its stored as 1 in database.
Logically it means "date null", but it was being shown as an actual
date: 1970-01-01

Fixes: #12409
  • Loading branch information
cproensa authored and vboctor committed Jul 29, 2016
1 parent 0227d63 commit 79976d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions roadmap_page.php
Expand Up @@ -80,9 +80,8 @@ function print_version_header( array $p_version_row ) {

$t_release_title = '<a href="roadmap_page.php?project_id=' . $t_project_id . '">' . string_display_line( $t_project_name ) . '</a> - <a href="roadmap_page.php?version_id=' . $t_version_id . '">' . string_display_line( $t_version_name ) . '</a>';

if( config_get( 'show_roadmap_dates' ) ) {
$t_version_timestamp = $p_version_row['date_order'];

$t_version_timestamp = $p_version_row['date_order'];
if( config_get( 'show_roadmap_dates' ) && !date_is_null( $t_version_timestamp ) ) {
$t_scheduled_release_date = ' (' . lang_get( 'scheduled_release' ) . ' ' . string_display_line( date( config_get( 'short_date_format' ), $t_version_timestamp ) ) . ')';
} else {
$t_scheduled_release_date = '';
Expand Down

0 comments on commit 79976d4

Please sign in to comment.