[Mono-bugs] [Bug 353495] New: HttpWebResponse.LastModified isn' t corrected for time zone

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jan 12 02:09:48 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=353495


           Summary: HttpWebResponse.LastModified isn't corrected for time
                    zone
           Product: Mono: Class Libraries
           Version: 1.2.6
          Platform: x86
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jdpurcell2 at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=190330)
 --> (https://bugzilla.novell.com/attachment.cgi?id=190330)
Testcase

In MS.NET, HttpWebResponse.LastModified returns local time, but in Mono it
returns UTC time (in both cases the DateTime.Kind is Local).

If the next request's .IfModifiedSince is based on this, it won't work
properly.

Testcase is attached.  Output on MS.NET:

HTTP Last-Modified Header:    Sat, 12 Jan 2008 06:58:32 GMT
HttpWebResponse.LastModified: Sat, 12 Jan 2008 01:58:32 Local
Success: Server sent HTTP 304 Not Modified.

Output on Mono 1.2.6 for Windows (haven't tried it on other OSes):

HTTP Last-Modified Header:    Sat, 12 Jan 2008 06:58:32 GMT
HttpWebResponse.LastModified: Sat, 12 Jan 2008 06:58:32 Local
Warning: Server sent a full copy of the page again.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list