Bugfix in time formatting
small fixes