Closed
Bug 259463
Opened 22 years ago
Closed 22 years ago
Date Problem-can not accept date before 01/01/1601 ,show blank
Categories
(Calendar :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: anupama, Assigned: gekacheka)
References
(
URL
)
Details
Attachments
(1 file)
|
2.25 KB,
patch
|
mostafah
:
first-review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Build Identifier: sunbird 0.2
Date Problem-can not accept date before 01/01/1900 ,show blank
Reproducible: Always
Steps to Reproduce:
1) Click File
2) Clcik New Event
3) Click Recurrence
4)Select Repeat Every.
5)Change the Date Exception (e.g 08/28/1550)
6)press Enter
Actual Results:
The Exception field is Blank.
Expected Results:
There should be display error Msg.
First ok date is 1601-01-01. Dates before then produce empty field.
Severity minor: most people will not be using dates that old,
so it is mostly an issue of error handling when someone mistypes
a year, such as 204 instead of 2004.
The Gregorian calendar wasn't put into use until 1580, and wasn't
used in Britain and its colonies until 1751. Dates before then are
not the same as the Julian calendar dates.
Exception is thrown by dateService.FormatDate for years <= 1600,
I suspect this is the limit of the w2k date format library.
The exception is not being caught, so parsed date is not displayed.
Fix is to catch the format exception, and behave same as when the parse failed
(restore previous date).
Severity: critical → minor
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Summary: Date Problem-can not accept date before 01/01/1900 ,show blank → Date Problem-can not accept date before 01/01/1601 ,show blank
datepicker.update:
format date before setting mValue
if format throws exception, formattedValue is null,
so can revert to previous date.
set mValue to new value only after format succeeds.
Assignee: mostafah → gekacheka
Comment on attachment 159285 [details] [diff] [review]
datepicker.xbl patch: revert date if format new date throws exception
tested with SB 0.2a (moz1.8), TB 0.8 (moz1.7)
Attachment #159285 -
Flags: first-review?(mostafah)
so what to do abt this bug.
because its accepting the date in three digits like 204 OR 199 also.
Also it accept the date like 1000 to 1999.
so why r saying that it only accept the dates only after 2000.
we didn't get this reply properly.
Comment 5•22 years ago
|
||
Comment on attachment 159285 [details] [diff] [review]
datepicker.xbl patch: revert date if format new date throws exception
Patch checked in. Thanks.
I'm not sure why but the attachment doesn't end with 0x00 0x0a ( or 0x00 0x0a
0x0d ) which makes "patch" to complain: "Unexpected end of file".
Can this be fixed at the origin?
Attachment #159285 -
Flags: first-review?(mostafah) → first-review+
Comment 6•22 years ago
|
||
Fixed in CVS
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 7•20 years ago
|
||
The bugspam monkeys have been set free and are feeding on Calendar :: General. Be afraid for your sanity!
QA Contact: gurganbl → general
You need to log in
before you can comment on or make changes to this bug.
Description
•