use timestamp for locking, at least it works

the ui part is still broken as it converts timezoneless unix timestamp like it has timezone included!