[Vtigercrm-commits] [Vtiger development] #7997: SalesOrder - wrong format for custom hour fields (12 AM/PM instead of 24) in list view
Vtiger development
vtiger-tickets at trac.vtiger.com
Fri Apr 18 06:04:21 GMT 2014
#7997: SalesOrder - wrong format for custom hour fields (12 AM/PM instead of 24)
in list view
-----------------------------------+-------------------------
Reporter: dubwise | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 6.0.0
Severity: Low | Resolution:
Keywords: hour,incorrect,format |
-----------------------------------+-------------------------
Comment (by rishab):
In ListViewConroller.php under
[/vtiger_root/include/ListView/ListViewController.php]
on line 302 in the else clause,under the if instantiate current user model
and get the time format,based on it convert the existing the time as shown
below.
{{{
elseif($field->getFieldDataType() == 'time') {
if(!empty($value)){
$userModel = Users_Privileges_Model::getCurrentUserModel();
if($userModel->get('hour_format')=='12')
$value = Vtiger_Time_UIType::getTimeValueInAMorPM($value);
else{
$value = '--';
}
}
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7997#comment:1>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list