Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

Flex Date Utils
Project Home Blog Forums Known Issues External Project Link Contact Project

Flex Date Utils Issue: DateDiff has some rounding issues

Name: DateDiff has some rounding issues
ID: 1
Project: Flex Date Utils
Type: Bug
Area: Code
Severity: Normal
Status: Closed
Related URL:
Creator: Gareth Arch
Created: 12/19/08 9:10 AM
Updated: 12/22/08 11:38 PM
Description: Due to certain days have few number of milliseconds per day in Flash (perhaps due to Daylight Savings Time), round was used for all dates. This is an incorrect calculation for certain dates, and math.floor should be used instead (as it was previously).
History: Created by Lampei (Gareth Arch) : 12/19/08 9:10 AM

Updated by Lampei (Gareth Arch) : 12/19/08 9:43 AM

Comment by Lampei (Gareth Arch) : 12/22/08 11:36 PM
Switched back to Math.floor for all results. Still can be a very minor issue for 2 days out of the year (when DST starts and ends), but will only throw time off for 1 hour if dates overlap at those times.

Updated by Lampei (Gareth Arch) : 12/22/08 11:38 PM
Closing issue, reopening as a DST issue.

Updated by Lampei (Gareth Arch) : 12/22/08 11:38 PM
Closing issue, reopening as a DST issue.

To add a comment to this bug, please login using the link above.