adamyeager / PushbulletSharp

This is a simple pushbullet wrapper written in C#.
MIT License
53 stars 61 forks source link

Fixed bug regarding getting pushes with Modified since parameter #15

Closed DriesPeeters closed 9 years ago

DriesPeeters commented 9 years ago

Hi,

I fixed a bug regarding getting pushes using the Modified attribute. In the old code, the modified unix time string was not in the correct timezone. The modified attribute for the request needs to be in UTC time. In the old code, this is not always the case.

I also added a test that will normally fail with the old code, and that will succeed in the fixed code. The test pushes a note, waits for some time, then pushes a new note. After that, we get all pushes that are modified since we pushed the first note.

Kind regards, Dries

adamyeager commented 9 years ago

Thanks for fixing this issue! I just pushed it up to nuget.