Event listener for time format

Plucking the bit that works out of #29