Fix datetime format when migrating new notification settings on MySQL Closes #15264 See merge request !3733