Fixed time formating problems. Work on logger