Skip to content
Snippets Groups Projects
Commit ce12fb7a authored by Mikhail I. Izmestev's avatar Mikhail I. Izmestev
Browse files

bugfix for IXR_Date::parseIso()

Ignore-this: e8d6e4b7eade8bd2898ada53cd9cf0dd

darcs-hash:20090312223053-556be-bab8017750e73beb806ca3c22e0f509d58acf19a.gz
parent 7ed33b2a
No related branches found
No related tags found
No related merge requests found
......@@ -615,11 +615,11 @@ class IXR_Date {
}
function parseIso($iso) {
$this->year = substr($iso, 0, 4);
$this->month = substr($iso, 4, 2);
$this->day = substr($iso, 6, 2);
$this->hour = substr($iso, 9, 2);
$this->minute = substr($iso, 12, 2);
$this->second = substr($iso, 15, 2);
$this->month = substr($iso, 5, 2);
$this->day = substr($iso, 8, 2);
$this->hour = substr($iso, 11, 2);
$this->minute = substr($iso, 14, 2);
$this->second = substr($iso, 17, 2);
}
function getIso() {
return $this->year.'-'.$this->month.'-'.$this->day.'T'.$this->hour.':'.$this->minute.':'.$this->second;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment