fixing some date storing erros and time intervals