leg: fix datetime formatting in edit form

Signed-off-by: diditclear <didyourupgradeclear@gmail.com>