Permalink
Browse files

Fixes #17076: Issue history show date submitted and last updated as i…

…ntegers rather than dates.
  • Loading branch information...
1 parent c0ad652 commit 73734109bd3c53a13dc246d3eee776a065141b69 @vboctor vboctor committed with vboctor Mar 10, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 core/history_api.php
View
4 core/history_api.php
@@ -381,9 +381,13 @@ function history_localize_item( $p_field_name, $p_type, $p_old_value, $p_new_val
$t_field_localized = lang_get( 'target_version' );
break;
case 'date_submitted':
+ $p_old_value = date( config_get( 'normal_date_format' ), $p_old_value );
+ $p_new_value = date( config_get( 'normal_date_format' ), $p_new_value );
$t_field_localized = lang_get( 'date_submitted' );
break;
case 'last_updated':
+ $p_old_value = date( config_get( 'normal_date_format' ), $p_old_value );
+ $p_new_value = date( config_get( 'normal_date_format' ), $p_new_value );
$t_field_localized = lang_get( 'last_update' );
break;
case 'os':

0 comments on commit 7373410

Please sign in to comment.