solving problem with events date