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:
parent
3221e7d7df
commit
1f2e257074
|
@ -625,7 +625,7 @@ class IXR_Date {
|
||||||
$this->timezone = substr($iso, 17);
|
$this->timezone = substr($iso, 17);
|
||||||
}
|
}
|
||||||
function getIso() {
|
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() {
|
function getXml() {
|
||||||
return '<dateTime.iso8601>'.$this->getIso().'</dateTime.iso8601>';
|
return '<dateTime.iso8601>'.$this->getIso().'</dateTime.iso8601>';
|
||||||
|
|
Loading…
Reference in New Issue