Project

General

Profile

Actions

Bug #19056

closed

eval "timesec" sets seconds to zero

Added by Jochen Rau almost 16 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-07-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

8893_4.3_alpha1.patch (562 Bytes) 8893_4.3_alpha1.patch Administrator Admin, 2009-01-11 03:27
T3X_bug_8893-0_0_0-z-201006171118.t3x (4.69 KB) T3X_bug_8893-0_0_0-z-201006171118.t3x Administrator Admin, 2010-06-17 11:31

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #15133: Date/time field changes its valueClosedErnesto Baschny2005-10-20

Actions
Actions

Also available in: Atom PDF