Make WordPress Core

Changeset 1564


Ignore:
Timestamp:
08/26/2004 12:40:48 PM (20 years ago)
Author:
michelvaldrighi
Message:

added very basic timezone support to IXR_Date

File:
1 edited

Legend:

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

    r1346 r1564  
    603603    var $minute;
    604604    var $second;
     605    var $timezone;
    605606    function IXR_Date($time) {
    606607        // $time can be a PHP timestamp or an ISO one
     
    621622    function parseIso($iso) {
    622623        $this->year = substr($iso, 0, 4);
    623         $this->month = substr($iso, 4, 2); 
     624        $this->month = substr($iso, 4, 2);
    624625        $this->day = substr($iso, 6, 2);
    625626        $this->hour = substr($iso, 9, 2);
    626627        $this->minute = substr($iso, 12, 2);
    627628        $this->second = substr($iso, 15, 2);
     629        $this->timezone = substr($iso, 17);
    628630    }
    629631    function getIso() {
    630         return $this->year.$this->month.$this->day.'T'.$this->hour.':'.$this->minute.':'.$this->second;
     632        return $this->year.$this->month.$this->day.'T'.$this->hour.':'.$this->minute.':'.$this->second.$this->timezone;
    631633    }
    632634    function getXml() {
Note: See TracChangeset for help on using the changeset viewer.