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