Fixed two issues regarding ticket creation and ticket listing in the index.
Fixed a bug in time printing. How lovely that it's all done in one function :D