public static void resetTimer(String timerName, JProgressBar bar) {
		for (Timer t : timerList) {
			if (t.getName().equals(timerName)) {
				
				if (t.isNormalTimer()){
					t.setStartingTime(System.currentTimeMillis());				
					bar.setForeground(Color.black);
				} else if (t.getDurationTotal() == DAY_LENGTH){
					t.setStartingTime(Math.floor(System.currentTimeMillis()/DAY_LENGTH)*DAY_LENGTH);
				} else if (t.getDurationTotal() == WEEK_LENGTH){
					t.setStartingTime((((Math.floor((System.currentTimeMillis()+DAY_LENGTH)/WEEK_LENGTH))*WEEK_LENGTH)-DAY_LENGTH));	
					}
				saveTimers();
				break;
			}
		}
	}