Skip to content
Snippets Groups Projects
Commit e32448d5 authored by madhu sr's avatar madhu sr
Browse files

Fixes: Handled the formating date to string when date comes in format dd/mm/yyyy

parent 4eb7db52
No related branches found
No related tags found
1 merge request!1122Fixes: Handled the formating date to string when date comes in format dd/mm/yyyy
......@@ -278,6 +278,7 @@ class Vtiger_Util_Helper {
if ($currentUser->get('date_format') === 'mm-dd-yyyy') {
$dateInUserFormat = str_replace('-', '/', $dateInUserFormat);
} else if ($currentUser->get('date_format') === 'dd/mm/yyyy'){
// strtotime expects the format m/d/y making changes to its convenient
$dateArray = explode('/', $dateInUserFormat);
$temp = $dateArray[0];
$dateArray[0] = $dateArray[1];
......@@ -1285,4 +1286,4 @@ class Vtiger_Util_Helper {
}
return $fieldValue;
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment