Commit 281f2ae1 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Remove "months ago" from comment date formatting.

For over month old comments, showing the date is more informative -
people usually know which month it is now.  Telling 6 months ago doesn't
tell me if the comment was posted in previous year - much more
informative is to just say it was posted in November '11.
parent 2fc3599b
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -102,10 +102,6 @@ Ext.define('Docs.view.Comments', {
                        var str = String(Math.round(diff / (60 * 60 * 24)));
                        return str + (str == "1" ? ' day' : ' days') + ' ago';
                    }
                    else if (diff < 60*60*24*365) {
                        var str = String(Math.round(diff / (60 * 60 * 24 * 31)));
                        return str + (str == "1" ? ' month' : ' months') + ' ago';
                    }
                    else {
                        return Ext.Date.format(new Date(date), 'jS M \'y');
                    }