BUG 11283 "Simplified Interface not reflecting minutes" SOLVED
- Simplified Interface not reflecting minutese - Solved problem, the list of cases in the simplified interface, the minutes show correctly * Available from version ProcessMaker-2.0.47 (2.5.1)
This commit is contained in:
@@ -1395,24 +1395,22 @@ class G
|
|||||||
if ($lang === '') {
|
if ($lang === '') {
|
||||||
$lang = defined( SYS_LANG ) ? SYS_LANG : 'en';
|
$lang = defined( SYS_LANG ) ? SYS_LANG : 'en';
|
||||||
}
|
}
|
||||||
|
|
||||||
$aux = explode( ' ', $date ); //para dividir la fecha del dia
|
$aux = explode( ' ', $date ); //para dividir la fecha del dia
|
||||||
$date = explode( '-', isset( $aux[0] ) ? $aux[0] : '00-00-00' ); //para obtener los dias, el mes, y el año.
|
$date = explode( '-', isset( $aux[0] ) ? $aux[0] : '00-00-00' ); //para obtener los dias, el mes, y el año.
|
||||||
$time = explode( ':', isset( $aux[1] ) ? $aux[1] : '00:00:00' ); //para obtener las horas, minutos, segundos.
|
$time = explode( ':', isset( $aux[1] ) ? $aux[1] : '00:00:00' ); //para obtener las horas, minutos, segundos.
|
||||||
|
|
||||||
|
|
||||||
$year = (int) ((isset( $date[0] )) ? $date[0] : '0'); //year
|
$year = (int) ((isset( $date[0] )) ? $date[0] : '0'); //year
|
||||||
$month = (int) ((isset( $date[1] )) ? $date[1] : '0'); //month
|
$month = (int) ((isset( $date[1] )) ? $date[1] : '0'); //month
|
||||||
$day = (int) ((isset( $date[2] )) ? $date[2] : '0'); //day
|
$day = (int) ((isset( $date[2] )) ? $date[2] : '0'); //day
|
||||||
|
|
||||||
|
|
||||||
$h = isset( $time[0] ) ? $time[0] : '00'; //hour
|
$h = isset( $time[0] ) ? $time[0] : '00'; //hour
|
||||||
$i = isset( $time[1] ) ? $time[1] : '00'; //minute
|
$i = isset( $time[1] ) ? $time[1] : '00'; //minute
|
||||||
$s = isset( $time[2] ) ? $time[2] : '00'; //second
|
$s = isset( $time[2] ) ? $time[2] : '00'; //second
|
||||||
|
|
||||||
|
|
||||||
$MONTHS = Array ();
|
$MONTHS = Array ();
|
||||||
for ($i = 1; $i <= 12; $i ++) {
|
for ($j = 1; $j <= 12; $j ++) {
|
||||||
$MONTHS[$i] = G::LoadTranslation( "ID_MONTH_$i", $lang );
|
$MONTHS[$j] = G::LoadTranslation( "ID_MONTH_$j", $lang );
|
||||||
}
|
}
|
||||||
|
|
||||||
$d = (int) $day;
|
$d = (int) $day;
|
||||||
@@ -1420,7 +1418,6 @@ class G
|
|||||||
|
|
||||||
//missing D
|
//missing D
|
||||||
|
|
||||||
|
|
||||||
$M = $MONTHS[$month];
|
$M = $MONTHS[$month];
|
||||||
$m = (int) $month;
|
$m = (int) $month;
|
||||||
$mm = G::complete_field( $month, 2, 1 );
|
$mm = G::complete_field( $month, 2, 1 );
|
||||||
|
|||||||
Reference in New Issue
Block a user