Add timezone to iso8601 timestamp. Props devlogic. fixes #2036
git-svn-id: https://develop.svn.wordpress.org/trunk@3279 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
de15eae87a
commit
3f81a79727
@ -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>';
|
||||
|
Loading…
Reference in New Issue
Block a user