Fixed the code for reading the dates from the shared preferences, it was checking correctly but reading it in the old way