fixed initializing date for the first time the app is started