changed time format in constructor