No input field

A tiny bug made `getTime` not work when non-input fields where used.
Also corrects indentation in two code blocks that was space indented.