• Brad Fitzpatrick's avatar
    webdav: convert to UTC before using http.TimeFormat · 57065200
    Brad Fitzpatrick authored
    http.TimeFormat hard-codes GMT and is documented that:
    
    > TimeFormat is the time format to use when generating times in HTTP
    > headers. It is like time.RFC1123 but hard-codes GMT as the time
    > zone. The time being formatted must be in UTC for Format to generate
    > the correct format.
    
    These two users weren't UTC-ifying the time.Time first.
    
    Fixes golang/go#25015
    
    Change-Id: I82be01856260e363361137fd9651b1940f439f21
    Reviewed-on: https://go-review.googlesource.com/113795
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarFilippo Valsorda <filippo@golang.org>
    57065200
Name
Last commit
Last update
..
internal/xml Loading commit data...
file.go Loading commit data...
file_go1.6.go Loading commit data...
file_go1.7.go Loading commit data...
file_test.go Loading commit data...
if.go Loading commit data...
if_test.go Loading commit data...
litmus_test_server.go Loading commit data...
lock.go Loading commit data...
lock_test.go Loading commit data...
prop.go Loading commit data...
prop_test.go Loading commit data...
webdav.go Loading commit data...
webdav_test.go Loading commit data...
xml.go Loading commit data...
xml_test.go Loading commit data...