Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Local Notifications firedate is offset

Discussion in 'Scripting' started by ImaginaryChris, May 26, 2015.

  1. ImaginaryChris

    ImaginaryChris

    Joined:
    Nov 25, 2013
    Posts:
    20
    Hi, I'm trying to setup local notifications on iOS using NotificationServices. When I set the fireDate with
    notif.fireDate = DateTime.Now.AddSeconds(10);

    it sets the fireDate offset by 7 hours (I think that is my timezone offset from UTC), so the notification does not fire in 10 seconds. Is this the way it is supposed to work? and if so, how would I set the fireDate so that it fires in 10 seconds in the above example?
     
  2. ImaginaryChris

    ImaginaryChris

    Joined:
    Nov 25, 2013
    Posts:
    20
    Anyone seen this issue? or know how to setup the local notifications in Unity 5?
     
  3. ImaginaryChris

    ImaginaryChris

    Joined:
    Nov 25, 2013
    Posts:
    20