rejectedsoftware / vibenews

Combined web forum and NNTP server implementation for stand-alone newsgroups
GNU Affero General Public License v3.0
44 stars 3 forks source link

Show relative times #16

Open ghost opened 10 years ago

ghost commented 10 years ago

Instead of "Tue, 04 Mar 2014 12:44:34 +0100", something like "x hours ago" in the groups summary + threads summary + post time would be nice. This could either be done in javascript or on the server. The serverside version would have to know the user's time offset though. The clientside version would require some javascript. Maybe it would be possible to have the html have the absolute time as it is now, but in the html tag sepcify the a timestamp and then if javascript is available it could transform all times into relative times as soon as the page is loaded.

luismarques commented 10 years ago

I also think that this is important. What I find weird is that not only are the times not relative to now(), but that they are also neither formatted to the client's timezone nor the server's timezone. For instance, I see both on Wed, 07 May 2014 21:53:28 GMT (more common) and on Fri, 02 May 2014 12:34:25 +0200. Insanity! :-)