Skip to content

Commit

Permalink
VCard\Parser: fix class declaration error (Issue #24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred Klomp committed Nov 17, 2014
1 parent 1c229f2 commit 8484f05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Mon Nov 17 2014 Alfred Klomp <[email protected]> 0.22.3
- VCard\Parser: fix class declaration error (Issue #24)
- VCard\Producer: distinguish between vCard 3 and 4 phone preference formats;
- VCard\Producer: distinguish between vCard 3 and 4 email preference formats;

Expand Down
4 changes: 2 additions & 2 deletions lib/SabreZarafa/VCard/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ public function vObjectToProperties ($vcardData)
}
// Dates:
if (isset($this->vcard->bday)) {
$time = new DateTime($this->vcard->bday->getValue());
$time = new \DateTime($this->vcard->bday->getValue());
$this->mapi[$p['birthday']] = $time->format('U');
}
if (isset($this->vcard->anniversary)) {
$time = new DateTime($this->vcard->anniversary->getValue());
$time = new \DateTime($this->vcard->anniversary->getValue());
$this->mapi[$p['wedding_anniversary']] = $time->format('U');
}
// It's tempting to interpret REV: as a Unix timestamp, but don't; Evolution
Expand Down

0 comments on commit 8484f05

Please sign in to comment.