Add timezone to iso8601 timestamp. Props devlogic. fixes #2036

git-svn-id: http://svn.automattic.com/wordpress/trunk@3279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-12-08 00:08:12 +00:00
parent 3221e7d7df
commit 1f2e257074
1 changed files with 1 additions and 1 deletions

View File

@ -625,7 +625,7 @@ class IXR_Date {
$this->timezone = substr($iso, 17);
}
function getIso() {
return $this->year.$this->month.$this->day.'T'.$this->hour.':'.$this->minute.':'.$this->second;
return $this->year.$this->month.$this->day.'T'.$this->hour.':'.$this->minute.':'.$this->second.$this->timezone;
}
function getXml() {
return '<dateTime.iso8601>'.$this->getIso().'</dateTime.iso8601>';