Cookie Viewer on mac is displaying incorrect expiration timestamps

VERIFIED FIXED in M18

Status

()

P3
normal
VERIFIED FIXED
18 years ago
18 years ago

People

(Reporter: jud, Assigned: morse)

Tracking

Trunk
PowerPC
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [nsbeta3+])

Attachments

(1 attachment)

(Reporter)

Description

18 years ago
The same cookie on windows and linux displays correctly, whereas on the mac,
expriation headers (at least those > y2k, I didn't try others) are off (I saw
one that expired in 2003 that mac was showing as 1933). I believe the cookie
struct's expires field is accurate and that the problem arises somewhere in the
cookie viewer xul when the expires field is converted into a string for
presentation. Probably a parsing or localization problem.
(Assignee)

Comment 1

18 years ago
Another consequence of the fact that the time base in the mac is 1900 whereas it 
is 1970 on the other platforms.  In 4.x we stored the cookie expiration time as 
the number of seconds since the time base of the particular platform.  We 
changed that in 5.0 to be the number of seconds since 1970 on all platforms.  So 
we need to adjust for that when converting the seconds to a displayable string.

Will attach a patch for the fix.
Keywords: nsbeta3
Whiteboard: [nsbeta3+]
Target Milestone: --- → M18
(Assignee)

Comment 2

18 years ago
Created attachment 12432 [details] [diff] [review]
Patch to fix the problem
(Assignee)

Updated

18 years ago
Status: NEW → ASSIGNED
(Reporter)

Comment 3

18 years ago
r=valeski
(Assignee)

Comment 4

18 years ago
Fix checked in.
Status: ASSIGNED → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → FIXED

Comment 5

18 years ago
verified:
Mac os8.6 2000082504
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.