Skip to content

Commit

Permalink
Use rtime for morgue times, not UTC-converted times (wheals)
Browse files Browse the repository at this point in the history
Fixes !lg stabwound max=nrune -log
  • Loading branch information
greensnark committed Dec 7, 2015
1 parent c25ed82 commit bb897c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper.rb
Expand Up @@ -218,7 +218,7 @@ def morgue_timestring(e, key=nil)
if key
timestamp = e[key].dup
else
timestamp = (e["end"] || e["time"]).dup
timestamp = (e["rend"] || e["end"] || e["rtime"] || e["time"]).dup
end
timestamp.sub!(/(\d{4})(\d{2})(\d{2})/) do |m|
"#$1#{sprintf('%02d', $2.to_i + 1)}#$3-"
Expand Down

0 comments on commit bb897c1

Please sign in to comment.