code: public static void setLocal(String time) {
  		SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
  		Date result = null;
  		try {
  			result = sdf.parse(time);
  		}
  		catch (ParseException pex) {
  			throw new RuntimeException("Time is not parseable (" + time + ")", pex);
  		}
  		setClock(Clock.fixed(result.toInstant(), ZoneId.systemDefault()));
  	}
docs: Creates a fixed Clock with the input format "yyyy-MM-dd HH:mm:ss" using the local (systemDefault) timezone.