wp/wp-includes/IXR/class-IXR-date.php
changeset 16 a86126ab1dd4
parent 7 cf61fcea0001
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
    35 		self::__construct( $time );
    35 		self::__construct( $time );
    36 	}
    36 	}
    37 
    37 
    38     function parseTimestamp($timestamp)
    38     function parseTimestamp($timestamp)
    39     {
    39     {
    40         $this->year = date('Y', $timestamp);
    40         $this->year = gmdate('Y', $timestamp);
    41         $this->month = date('m', $timestamp);
    41         $this->month = gmdate('m', $timestamp);
    42         $this->day = date('d', $timestamp);
    42         $this->day = gmdate('d', $timestamp);
    43         $this->hour = date('H', $timestamp);
    43         $this->hour = gmdate('H', $timestamp);
    44         $this->minute = date('i', $timestamp);
    44         $this->minute = gmdate('i', $timestamp);
    45         $this->second = date('s', $timestamp);
    45         $this->second = gmdate('s', $timestamp);
    46         $this->timezone = '';
    46         $this->timezone = '';
    47     }
    47     }
    48 
    48 
    49     function parseIso($iso)
    49     function parseIso($iso)
    50     {
    50     {