Commit 260fd1c57251f635f7f48753ae25148350941815

Authored by alsor
1 parent 324d6584
Exists in master and in 1 other branch production

Show the time of occurence of an exception with maximum available (stored) precision

app/views/notices/_summary.html.haml
... ... @@ -12,7 +12,7 @@
12 12 %td= notice.where
13 13 %tr
14 14 %th Occurred
15   - %td= notice.created_at.to_s(:micro)
  15 + %td= notice.created_at.to_s(:precise) + (".%03d" % notice.created_at.usec)
16 16 %tr
17 17 %th Similar
18 18 %td= problem.notices_count - 1
... ...
config/initializers/time_formats.rb
1 1 Time::DATE_FORMATS[:micro] = '%b %d %l:%M%P'
  2 +Time::DATE_FORMATS[:precise] = '%b %d %H:%M:%S'
... ...