fixes localtime bug
begins formatting duration