[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: tts index.php,1.43.2.5,1.43.2.6 viewticket_detai
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: tts index.php,1.43.2.5,1.43.2.6 viewticket_details.php,1.42.2.3,1.42.2.4 |
Date: |
Fri, 12 Apr 2002 11:07:49 -0400 |
Update of /cvsroot/phpgroupware/tts
In directory subversions:/tmp/cvs-serv13129
Modified Files:
Tag: Version-0_9_14-branch
index.php viewticket_details.php
Log Message:
Fix for displaying improper date/time.
Index: index.php
===================================================================
RCS file: /cvsroot/phpgroupware/tts/index.php,v
retrieving revision 1.43.2.5
retrieving revision 1.43.2.6
diff -C2 -r1.43.2.5 -r1.43.2.6
*** index.php 24 Mar 2002 16:53:06 -0000 1.43.2.5
--- index.php 12 Apr 2002 15:07:47 -0000 1.43.2.6
***************
*** 232,241 ****
$history_values =
$GLOBALS['phpgw']->historylog->return_array(array(),array('O'),'history_timestamp','ASC',$GLOBALS['phpgw']->db->f('ticket_id'));
!
$GLOBALS['phpgw']->template->set_var('tts_t_timestampopened',$GLOBALS['phpgw']->common->show_date($history_values[0]['datetime']));
if ($GLOBALS['phpgw']->db->f('ticket_status') == 'X')
{
$history_values =
$GLOBALS['phpgw']->historylog->return_array(array(),array('X'),'history_timestamp','DESC',$GLOBALS['phpgw']->db->f('ticket_id'));
!
$GLOBALS['phpgw']->template->set_var('tts_t_timestampclosed',$GLOBALS['phpgw']->common->show_date($history_values[0]['datetime']));
$GLOBALS['phpgw']->template->parse('tts_col_status','tts_col_ifviewall',False);
}
--- 232,241 ----
$history_values =
$GLOBALS['phpgw']->historylog->return_array(array(),array('O'),'history_timestamp','ASC',$GLOBALS['phpgw']->db->f('ticket_id'));
!
$GLOBALS['phpgw']->template->set_var('tts_t_timestampopened',$GLOBALS['phpgw']->common->show_date($history_values[0]['datetime']
- ((60*60) *
$GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset'])));
if ($GLOBALS['phpgw']->db->f('ticket_status') == 'X')
{
$history_values =
$GLOBALS['phpgw']->historylog->return_array(array(),array('X'),'history_timestamp','DESC',$GLOBALS['phpgw']->db->f('ticket_id'));
!
$GLOBALS['phpgw']->template->set_var('tts_t_timestampclosed',$GLOBALS['phpgw']->common->show_date($history_values[0]['datetime']
- ((60*60) *
$GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset'])));
$GLOBALS['phpgw']->template->parse('tts_col_status','tts_col_ifviewall',False);
}
Index: viewticket_details.php
===================================================================
RCS file: /cvsroot/phpgroupware/tts/viewticket_details.php,v
retrieving revision 1.42.2.3
retrieving revision 1.42.2.4
diff -C2 -r1.42.2.3 -r1.42.2.4
*** viewticket_details.php 25 Jan 2002 23:48:16 -0000 1.42.2.3
--- viewticket_details.php 12 Apr 2002 15:07:47 -0000 1.42.2.4
***************
*** 138,147 ****
if ($value['status'] == 'O')
{
! $ticket['opened'] =
$GLOBALS['phpgw']->common->show_date($value['datetime']);
}
if ($value['status'] == 'X')
{
! $ticket['closed'] =
$GLOBALS['phpgw']->common->show_date($value['datetime']);
}
}
--- 138,147 ----
if ($value['status'] == 'O')
{
! $ticket['opened'] =
$GLOBALS['phpgw']->common->show_date($value['datetime'] - ((60*60) *
$GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset']));
}
if ($value['status'] == 'X')
{
! $ticket['closed'] =
$GLOBALS['phpgw']->common->show_date($value['datetime'] - ((60*60) *
$GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset']));
}
}
***************
*** 183,187 ****
$GLOBALS['phpgw']->template->set_var('lang_user',lang('User'));
!
$GLOBALS['phpgw']->template->set_var('value_date',$GLOBALS['phpgw']->common->show_date($value['datetime']));
$GLOBALS['phpgw']->template->set_var('value_user',$value['owner']);
--- 183,187 ----
$GLOBALS['phpgw']->template->set_var('lang_user',lang('User'));
!
$GLOBALS['phpgw']->template->set_var('value_date',$GLOBALS['phpgw']->common->show_date($value['datetime']
- ((60*60) *
$GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset'])));
$GLOBALS['phpgw']->template->set_var('value_user',$value['owner']);
***************
*** 210,214 ****
$GLOBALS['phpgw']->nextmatchs->template_alternate_row_color($GLOBALS['phpgw']->template);
!
$GLOBALS['phpgw']->template->set_var('value_date',$GLOBALS['phpgw']->common->show_date($value['datetime']));
$GLOBALS['phpgw']->template->set_var('value_user',$value['owner']);
--- 210,214 ----
$GLOBALS['phpgw']->nextmatchs->template_alternate_row_color($GLOBALS['phpgw']->template);
!
$GLOBALS['phpgw']->template->set_var('value_date',$GLOBALS['phpgw']->common->show_date($value['datetime']
- ((60*60) *
$GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset'])));
$GLOBALS['phpgw']->template->set_var('value_user',$value['owner']);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: tts index.php,1.43.2.5,1.43.2.6 viewticket_details.php,1.42.2.3,1.42.2.4,
Mark A Peters <address@hidden> <=