summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-09-02 12:06:32 (GMT)
committerAleksander Machniak <alec@alec.pl>2012-09-02 12:06:32 (GMT)
commit696761b811a8fb94771fd87492d486f2a13a3e56 (patch)
tree9e6d0906a7c4f9f360c828b0a316bef60e1f9735
parentcfbfbde475e8415f12a3d095c36213a726bcaec3 (diff)
downloadkolab-syncroton-696761b811a8fb94771fd87492d486f2a13a3e56.tar.gz
Fix date format in IMAP SEARCH
-rw-r--r--lib/kolab_sync_data_email.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
index 9c29510..f36c42d 100644
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -381,7 +381,7 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
$dt = new DateTime('now', new DateTimeZone('UTC'));
$dt->modify($mod);
// RFC3501: IMAP SEARCH
- $filter[] = 'SINCE ' . $dt->format('d-m-Y');
+ $filter[] = 'SINCE ' . $dt->format('d-M-Y');
}
return $filter;
@@ -806,6 +806,7 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
&& !empty($query['and']['greaterThan']['dateReceived'])
&& !empty($query['and']['greaterThan']['value'])
) {
+ // @TODO: date format ?
$search_str .= ' SINCE ' . trim($query['and']['greaterThan']['value']);
}
@@ -813,6 +814,7 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
&& !empty($query['and']['lessThan']['dateReceived'])
&& !empty($query['and']['lessThan']['value'])
) {
+ // @TODO: date format ?
$search_str .= ' BEFORE ' . trim($query['and']['lessThan']['value']);
}
}