mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:44 +01:00
Handle bad rounding / floating point math fun
This commit is contained in:
parent
788cd3e078
commit
17885d27af
@ -683,6 +683,9 @@ var et2_date_duration = et2_date.extend(
|
|||||||
value *= 60;
|
value *= 60;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// Minutes should be an integer. Floating point math.
|
||||||
|
value = Math.round(value);
|
||||||
|
|
||||||
switch(this.options.data_format)
|
switch(this.options.data_format)
|
||||||
{
|
{
|
||||||
case 'd':
|
case 'd':
|
||||||
|
Loading…
Reference in New Issue
Block a user