** Modified datetime handling to handle all-day events