Unity-Technologies / NotificationsSamples

Sample project for Unity Notifications
Other
282 stars 51 forks source link

Always return local time #70

Closed aurimasc closed 2 years ago

aurimasc commented 2 years ago

When using Calendar trigger, we use UTC time. However, the sample project queries it and compares against local time, and C# DateTime sadly ignores the kind, so comparisons are wrong. Turns out some people actually use code from this sample in their project running into issues. Change querying to always return local time here (related PR in the package to address the possibility of same issue when using directly).