Make WordPress Core


Ignore:
Timestamp:
07/22/2008 07:53:03 PM (14 years ago)
Author:
ryan
Message:

Add timezone var to IXR_date. Add timezone back to getIso(). Comment WP specific additions. see #7227

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-IXR.php

    r8378 r8403  
    612612    function IXR_Error($code, $message) {
    613613        $this->code = $code;
     614        // WP adds htmlspecialchars(). See #5666
    614615        $this->message = htmlspecialchars($message);
    615616    }
     
    651652    var $minute;
    652653    var $second;
     654    var $timezone;
    653655    function IXR_Date($time) {
    654656        // $time can be a PHP timestamp or an ISO one
     
    666668        $this->minute = date('i', $timestamp);
    667669        $this->second = date('s', $timestamp);
     670        // WP adds timezone. See #2036
     671        $this->timezone = '';
    668672    }
    669673    function parseIso($iso) {
     
    674678        $this->minute = substr($iso, 12, 2);
    675679        $this->second = substr($iso, 15, 2);
     680        // WP adds timezone. See #2036
     681        $this->timezone = substr($iso, 17);
    676682    }
    677683    function getIso() {
    678         return $this->year.$this->month.$this->day.'T'.$this->hour.':'.$this->minute.':'.$this->second;
     684        // WP adds timezone. See #2036
     685        return $this->year.$this->month.$this->day.'T'.$this->hour.':'.$this->minute.':'.$this->second.$this->timezone;
    679686    }
    680687    function getXml() {
Note: See TracChangeset for help on using the changeset viewer.