~ubuntu-branches/ubuntu/intrepid/drupal5/intrepid-security

« back to all changes in this revision

Viewing changes to includes/xmlrpc.inc

  • Committer: Bazaar Package Importer
  • Author(s): Emanuele Gentili
  • Date: 2008-01-12 14:00:18 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080112140018-aef0id92a2r0611p
Tags: 5.6-1ubuntu1
* Merge from debian unstable, remaining changes (LP: #182291):
  + debian/patches/02_htaccess:
    - Add RewriteBase /drupal5
  + debian/control:
    - Replace exim4 with postfix in Depends.
    - Modify Maintainer value to match DebianMaintainerField spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Id: xmlrpc.inc,v 1.38.2.1 2007/04/19 02:05:15 drumm Exp $
 
2
// $Id: xmlrpc.inc,v 1.38.2.2 2007/12/20 07:53:34 drumm Exp $
3
3
 
4
4
/*
5
5
  Drupal XML-RPC library. Based on the IXR - The Incutio XML-RPC Library - (c) Incutio Ltd 2002-2005
390
390
    $xmlrpc_date->iso8601 = date('Ymd\TH:i:s');
391
391
  }
392
392
  else {
 
393
    $time = str_replace(array('-', ':'), '', $time);
393
394
    $xmlrpc_date->year = substr($time, 0, 4);
394
395
    $xmlrpc_date->month = substr($time, 4, 2);
395
396
    $xmlrpc_date->day = substr($time, 6, 2);
396
397
    $xmlrpc_date->hour = substr($time, 9, 2);
397
 
    $xmlrpc_date->minute = substr($time, 12, 2);
398
 
    $xmlrpc_date->second = substr($time, 15, 2);
 
398
    $xmlrpc_date->minute = substr($time, 11, 2);
 
399
    $xmlrpc_date->second = substr($time, 14, 2);
399
400
    $xmlrpc_date->iso8601 = $time;
400
401
  }
401
402
  return $xmlrpc_date;