adamyeager / PushbulletSharp

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

Mono Issue #16

Closed DunkyG closed 8 years ago

DunkyG commented 8 years ago

When I try to get the client info using your library under mono I get the following error. Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-10)

System.ArgumentException: Kind property of dateTime is Utc but the sourceTimeZone does not equal TimeZoneInfo.Utc at System.TimeZoneInfo.ConvertTime (DateTime dateTime, System.TimeZoneInfo sourceTimeZone, System.TimeZoneInfo destinationTimeZone) [0x00000] in :0 at System.TimeZoneInfo.ConvertTime (DateTime dateTime, System.TimeZoneInfo destinationTimeZone) [0x00000] in :0 at PushbulletSharp.PushbulletClient.ConvertFromBasicSubscription (PushbulletSharp.Models.Responses.BasicSubscription basicSubscription) [0x00000] in :0 at PushbulletSharp.PushbulletClient.CurrentUsersSubscriptions (Boolean showActiveOnly) [0x00000] in :0

adamyeager commented 8 years ago

I'm not too familiar with Mono, but let me ask you this, when you create your Client object are you using the optional parameter for TimeZoneInfo on the Client constructor?

var myClient = new PushbulletClient("APIKEY", TimeZoneInfo.Local);