Handle bad rounding / floating point math fun

This commit is contained in:
Nathan Gray 2015-04-02 14:57:16 +00:00
parent 788cd3e078
commit 17885d27af

View File

@ -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':