date and time picker works correctly now