nylas / sync-engine

:incoming_envelope: IMAP/SMTP sync system with modern APIs
https://nylas.com/docs/platform
GNU Affero General Public License v3.0
3.5k stars 354 forks source link

Outlook.com all day events date mismatch #463

Open yevhene opened 6 years ago

yevhene commented 6 years ago

I create event on 16.05.2018 (My timezone is +2 Kyiv, Ukraine) in outlook.com screenshot from 2018-05-24 18-07-38

And then I pull event from nylas API and it is on 15.05.2018:

{
  "id": "25d2ktgflve600le2lezkh1hw",
  ...
  "title": "allday",
  "when": {
    "date": "2018-05-15",
    "object": "date"
  }
}
yevhene commented 6 years ago

Allday events become two-day events: screenshot from 2018-06-19 12-28-35

{
  "id": "3wylck7g4s6p4mk5wcsy8i3qu",
  ...
  "title": "allday",
  "when": {
    "end_date": "2018-06-07",
    "object": "datespan",
    "start_date": "2018-06-06"
}