diff options
-rw-r--r-- | core/mui/cairo_miracle_painter.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/mui/cairo_miracle_painter.rb b/core/mui/cairo_miracle_painter.rb index 8c038605..c86a8fb5 100644 --- a/core/mui/cairo_miracle_painter.rb +++ b/core/mui/cairo_miracle_painter.rb @@ -342,10 +342,11 @@ class Gdk::MiraclePainter < Gtk::Object def timestamp_label now = Time.now + mtime = Time.at(((message[:id]>>22)+1288834974657)/1000.0) rescue now if message[:created].year == now.year && message[:created].month == now.month && message[:created].day == now.day - Pango.escape(message[:created].strftime('%H:%M:%S')) + Pango.escape(mtime.strftime('%H:%M:%S.%L')) else - Pango.escape(message[:created].strftime('%Y/%m/%d %H:%M:%S')) + Pango.escape(mtime.strftime('%Y/%m/%d %H:%M:%S.%L')) end end |