Fixed the 'if' condition in mapper to print the hour.