Implementing local notifications and updating notification time