Handle bad rounding / floating point math fun

This commit is contained in:
Nathan Gray 2015-04-02 14:58:50 +00:00
parent 68e9167a87
commit cb97259a3b

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