fix resize issue with dialog
add (minimal) support for custom time format