PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTTP » HTTP_WebDAV_Server » Bug #1175

Date format error in WebDav/Server.php

Details

Submitted2004-04-10 16:12 UTC
Fromjo dot seiler at gmx dot de
Assignedhholzgra
StatusClosed
PackageHTTP_WebDAV_Server
PHP Version4.3.0
OSMac OS X 10.2.8
Roadmaps(Not assigned)

Comments

[2004-04-10 16:12 UTC] jo dot seiler at gmx dot de

Description:
------------
in function http_PROPFIND() there's a date format error
in
Server.php:

case "getlastmodified":
echo " <D:getlastmodified
ns0:dt=\"dateTime.rfc1123\">".
date("D, j M Y H:m:s ", $prop['val']).
"GMT</D:getlastmodified>\n";
break;

should be:

date("D, j M Y H:i:s ", $prop['val']).

The same wrong format is used in the lst-modified
header output in http_GET.

[2004-04-10 16:26 UTC] jo dot seiler at gmx dot de

actually, to have the date disappear correctly in all
cases, it should be formatted as:

gmdate("D, d M Y H:i:s ", prop['val'])