Skip to content

Commit

Permalink
Merge pull request #2 from miccheng/master
Browse files Browse the repository at this point in the history
Fix time to display HH:MM instead of HH:SS
  • Loading branch information
leonid-shevtsov committed Oct 19, 2013
2 parents e13b66c + ed5e360 commit 73a29de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-timesheet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
timestamp = Time.parse line.slice!(0,25)
day = timestamp.strftime("%Y-%m-%d")
days[day] ||= []
days[day] << timestamp.strftime("%H:%S ") + line.strip
days[day] << timestamp.strftime("%H:%M ") + line.strip
days
}.sort{|a,b| a[0]<=>b[0]}
puts day_entries.map{|day, entries| "#{day}\n#{'='*10}\n\n#{entries.sort.join("\n")}\n\n"}
Expand Down

0 comments on commit 73a29de

Please sign in to comment.