Closed
Bug 419433
Opened 17 years ago
Closed 17 years ago
Remove use of ISO date helpers from Microformats
Categories
(Toolkit Graveyard :: Microformats, defect)
Toolkit Graveyard
Microformats
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9beta4
People
(Reporter: mkaply, Assigned: mkaply)
References
Details
Attachments
(1 file)
4.90 KB,
patch
|
sayrer
:
review+
beltzner
:
approval1.9b4+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
When this change was originally made to my code (without any review or approval by me, I might add), I thought it would work, but I have since discovered it broke my microformats code.
1. It removed an API that is used by implementors (Microformats.dataFromISO8601),
2. ISO dates can have a date but no time. When they are converted to JS objects, those objects have a time of midnight and you can never find out that they didn't have a time associated with them. My implementation uses an internal boolean (time) to indicate if the ISO date that was passed in has a time or not. This is important when converting back to an ISO date.
So this bug puts my code back (with a test to make sure this doesn't happen again)
Assignee | ||
Comment 1•17 years ago
|
||
Attachment #305527 -
Flags: review?(sayrer)
Updated•17 years ago
|
Attachment #305527 -
Flags: review?(sayrer) → review+
Assignee | ||
Updated•17 years ago
|
Attachment #305527 -
Flags: approval1.9?
Comment 2•17 years ago
|
||
Wouldn't it be better to change the ISO8601DateUtils code to cover case #2 instead, so other users get the functionality as well?
Assignee | ||
Comment 3•17 years ago
|
||
(In reply to comment #2)
> Wouldn't it be better to change the ISO8601DateUtils code to cover case #2
> instead, so other users get the functionality as well?
That would be difficult simply because JS Date objects don't support Date only.
So for instance, how would doing a toLocaleString on a ISO date that was converted to JS know to only display the date?
Comment 4•17 years ago
|
||
Don't these same questions apply to the code you're adding back?
Comment 5•17 years ago
|
||
Comment on attachment 305527 [details] [diff] [review]
Put my code back and add a test
a=beltzner for 1.9
Attachment #305527 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 6•17 years ago
|
||
(In reply to comment #4)
> Don't these same questions apply to the code you're adding back?
>
Since I'm parsing the date, I can know if it it has a time or not, so I set a boolean on the JS object to indicate that it is a date only.
Then when I convert the JS object back to an ISO date, I don't add the time.
ISO code could in theory do something similar.
Comment 7•17 years ago
|
||
(In reply to comment #6)
> ISO code could in theory do something similar.
Exactly, so it seems to me that changing ISO8601DateUtils to do what you want would be better, since it helps more than just microsummaries users.
Assignee | ||
Comment 8•17 years ago
|
||
Fix checked in.
ISO dates with just the date are not used by many other things, but if I have time I'll fix the core ISO date code.
This needs to go in to make FF 3.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 9•17 years ago
|
||
This completely landed without approval. http://tinderbox.mozilla.org/Firefox/ clearly says "The tree is frozen for beta4. Only checkins with approval1.9b4+ are permitted." You either need to get post-approval, or you should back out now.
Assignee | ||
Comment 10•17 years ago
|
||
Sorry, I thought approval 1.9 was enough.
Assignee | ||
Comment 11•17 years ago
|
||
Reopened since I backed out.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•17 years ago
|
Attachment #305527 -
Flags: approval1.9b4?
Comment 12•17 years ago
|
||
Comment on attachment 305527 [details] [diff] [review]
Put my code back and add a test
a1.9b4=beltzner
Attachment #305527 -
Flags: approval1.9b4? → approval1.9b4+
Comment 13•17 years ago
|
||
Comment on attachment 305527 [details] [diff] [review]
Put my code back and add a test
Actually, can we hold off on landing this? We need to hold the tree for a bit to try out some build flag changes. I'll remark as approved when you're free to land.
Attachment #305527 -
Flags: approval1.9b4+ → approval1.9b4?
Comment 14•17 years ago
|
||
Comment on attachment 305527 [details] [diff] [review]
Put my code back and add a test
OK, good to go again. Please land for beta4.
Attachment #305527 -
Flags: approval1.9b4? → approval1.9b4+
Comment 15•17 years ago
|
||
Comment on attachment 305527 [details] [diff] [review]
Put my code back and add a test
Sadly, this missed the beta 4 checkin cutoff. Please land after we open for post-b4 checkins.
Attachment #305527 -
Flags: approval1.9b4+ → approval1.9b4-
Assignee | ||
Comment 16•17 years ago
|
||
Actually I got it in. Forgot to close the bug.
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Comment 17•17 years ago
|
||
FWIW, here's the bonsai link for the checkin that stuck:
http://tinyurl.com/2ooa74
Updated•17 years ago
|
Target Milestone: --- → mozilla1.9beta4
Comment 18•17 years ago
|
||
Comment on attachment 305527 [details] [diff] [review]
Put my code back and add a test
Apparently this did land before the cut off. Putting the flag to rights for some reason which honestly eludes me.
Attachment #305527 -
Flags: approval1.9b4- → approval1.9b4+
Updated•6 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•