refactor js + localize datetime string + update ticket admin + fixes