Skip to content

Commit

Permalink
fixed bug in date_submitted in emails
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@316 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Jul 19, 2001
1 parent 0180a03 commit 14094cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core_email_API.php
Expand Up @@ -285,7 +285,7 @@ function email_build_bug_message( $p_bug_id ) {
$s_status_enum_string,
$s_reproducibility_enum_string;

$query = "SELECT *
$query = "SELECT *, UNIX_TIMESTAMP(date_submitted) as date_submitted
FROM $g_mantis_bug_table
WHERE id='$p_bug_id'
ORDER BY date_submitted $g_bugnote_order";
Expand All @@ -311,7 +311,7 @@ function email_build_bug_message( $p_bug_id ) {

$v2_description = string_email( $v2_description );
$v_summary = string_email( $v_summary );
$v_date_submitted = date( $g_complete_date_format, sql_to_unix_time( $v_date_submitted ) );
$v_date_submitted = date( $g_complete_date_format, $v_date_submitted );
$v_last_updated = date( $g_complete_date_format, sql_to_unix_time( $v_last_updated ) );

$t_sev_str = get_enum_element( $s_severity_enum_string, $v_severity );
Expand Down

0 comments on commit 14094cd

Please sign in to comment.