Closed Bug 229527 Opened 22 years ago Closed 21 years ago

airfrance.us - Enter flight dates in form. When submitting error message: "date does not exist".

Categories

(Tech Evangelism Graveyard :: English Other, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cstoller, Unassigned)

References

()

Details

(Whiteboard: [bug248549notfixed])

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031208 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031208 The airfrance website (which did not work previously with Mozilla) has been redesigned. The new problem is more subtle: Fill in a form to check for flights using dates like January 30, 2004 and February 19, 2004. Submitting the form results in an error message "The date you entered does not exist". Reproducible: Always Steps to Reproduce: 1. go to "www.airfrance.us" 2. on the left hand side of the display under "book" enter destination and date. 3. Click continue. Actual Results: After the new page displays showing the dates that were entered there is a pop up error message "the date you entered does not exist". Expected Results: Mozilla should have shown the list of available flights for the dates that were entered. The webpages work correctly with IE 5.5 on the same computer. The problem existed already with Mozilla 1.5. The problem occurs also on Mozilla 1.6b on MacOS 10.2.8 (the page is also not working with Safari 1.0. However, there is no error message). The page works with IE 5.2.
The site is carefully designed not to work in any browsers but IE and NS4, with the following code: var AnneeJavaScript = DateJavaScript.getYear(); AnneeJavaScript = parseInt(AnneeJavaScript,10); if ((AnneeJavaScript < 2000) && (document.all)) { AnneeJavaScript += 1900; } if(document.layers) { AnneeJavaScript = 1900 + AnneeJavaScript; } followed by the code looking at AnneeJavaScript and comparing it to the year you entered and posting the bogus error message you see if they don't match up. Now GetYear() is NOT y2k-compliant; that's what GetFullYear() is for. So in Mozilla AnneeJavaScript ends up being "103" (for the next few days, anyway). This site just needs to switch to GetFullYear() and remove all this broken browser-sniffing code. Not a Mozilla bug.
Assignee: form-submission → english-other
Status: UNCONFIRMED → NEW
Component: HTML: Form Submission → English Other
Ever confirmed: true
Product: Browser → Tech Evangelism
QA Contact: english-other
Version: Trunk → unspecified
Summary: Enter flight dates in form. When submitting error message: "date does not exist". → airfrance.us - Enter flight dates in form. When submitting error message: "date does not exist".
Whiteboard: [bug248549notfixed]
Site was redesigned and this now works fine using FF trunk 20040802 on Win2k & Linux.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.