Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Agasper committed Nov 7, 2017
2 parents e494dca + 3d9901b commit e37a157
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions UnityProject/Assets/LocalNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public static int SendNotification(int id, long delayMs, string title, string me
return id;
#elif UNITY_IOS && !UNITY_EDITOR
UnityEngine.iOS.LocalNotification notification = new UnityEngine.iOS.LocalNotification();
DateTime now = DateTime.Now;
DateTime fireDate = new DateTime(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second).AddSeconds(delayMs);
DateTime fireDate = DateTime.Now.AddSeconds(delayMs / 1000);
notification.fireDate = fireDate;
notification.alertBody = message;
notification.alertAction = title;
Expand Down

0 comments on commit e37a157

Please sign in to comment.