TobiasBuchholz / Plugin.Firebase

Wrapper around the native Android and iOS Firebase Xamarin SDKs
MIT License
211 stars 49 forks source link

ToHashMap/Put extension does not support DateTime value #118

Closed tranb3r closed 1 year ago

tranb3r commented 1 year ago

Could you please add support for DateTime value in ToHashMap/Put extension? Currently it only supports DateTimeOffset, and when giving a DateTime in input, it throws an ArgumentException. Of course I can convert DateTime to DateTimeOffset in my app before calling Firestore methods, but it would be nice to have it implemented in the plugin. Thanks !