Display client local time

Is there a way to display the client date/time in a vaadin app and have it update itself automatically every second? I have found this addon https://vaadin.com/directory#!addon/datetimelabel but unfortunately it doesn’t work with vaadin 8


    Label lblTime = new Label();
    DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy hh:mm:ss");

This will give you local time set in label, but you need to do something about refreshing I dont where you will use it. Maybe you can do something with setPollInterval(1000); or something similar.

How do I refresh every second?