Closed Bug 420253 Opened 16 years ago Closed 16 years ago

seconds-from-dateTime returns NaN for a leap day (today)

Categories

(Core Graveyard :: XForms, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 411188

People

(Reporter: Helmut.Ackermann, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Build Identifier: 0.8.4

The function "seconds-from-dateTime" returns NaN for a dateTime value like 2008-02-29T08:26:00+01:00 that contains the leap day 2008-02-29.
This may be related to bug #411188 where the same was observed for the function days-from-date 

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Attached file testcase
This is a dup of bug411188. Calculation of leap years is incorrect in nsSchemaValidatorUtils::GetMaximumDayInMonthFor.

The patch for 411188 fixes the problem.
marking as a dupe per msterlin
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: