#19056eval "timesec" sets seconds to zero
Description
If a column in $TCA configured to ‘eval’ => ‘timesec’ the seconds are set to zero after leaving the BE-field.
This is caused by the following lines in “jsfunc.evalfield.js”:
// Seconds since midnight:
function evalFunc_getTime(timeObj) {
return timeObj.getUTCHours()*60*60+timeObj.getUTCMinutes()*60+Math.round(timeObj.getUTCSeconds()/1000);
}
They should be:
// Seconds since midnight:
function evalFunc_getTime(timeObj) {
return timeObj.getUTCHours()*60*60+timeObj.getUTCMinutes()*60+timeObj.getUTCSeconds();
}
The bug occurs only if there is no checkbox.
(issue imported from #M8893)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.