not parsing dates from user prefs properly