Download & Extend

XML-RPC response date fields are not parse correctly to the second

Project:Drupal core
Version:5.x-dev
Component:other
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The function xmlrpc_date($time) in xmlrpc.inc drops the second and only stores the 10s as seconds.

Error is in $xmlrpc_date->second = substr($time, 14, 2);

Should be in $xmlrpc_date->second = substr($time, 13, 2);

minutes are on position 11 and 12 so seconds are on position 13 and 14

Patch included.

AttachmentSizeStatusTest resultOperations
xmlrpc.patch508 bytesIgnored: Check issue status.NoneNone

Comments

#1

Version:5.7» 5.x-dev
Status:active» reviewed & tested by the community

This bug is already fixed in D6 and D7.

#2

Status:reviewed & tested by the community» fixed

Committed to 5.x.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here