XF 1.0 Relative Timestamps

In the beginning, dates next to content on the internet were ugly things. We used to see date/time strings like 07-29-2010 16:31 and that would be it.

Then, options were added to allow administrators to specify a date/time format, and you could see output such as 4:31pm, Thursday June 29th 2010.

Later still, it was possible to output times relative to the present, so one could see dates like 3 minutes ago or Yesterday at 6:15pm.

However, these relative dates can be nasty when it comes to anything that is going to cache the page output. If a search engine slurps up the page, its cache is going to forever be wrong, as it will be locked at 3 minutes ago even when the content is weeks old. This can also be a problem for long threads. By the time you reach the bottom of a long page, the posts at the bottom could be several minutes older than when they were loaded into your browser, so their 2 minutes ago output is completely wrong.

XenForo addresses this by always outputting absolute dates and times, but our Javascript then identifies these instances and converts them into relative dates for the viewing user.

The icing on the cake is that all date/time instances automatically update as time goes by. If reply to a thread, your message will be posted and its date and time will be noted as 'A moment ago'. Wait a little while, and it will automatically update to read '1 minute ago' and will continue until it no longer makes sense to display a relative date.

I have yet to grow tired of seeing all the dates in a thread simultaneously update all by themselves :)
 
Great stuff, but if people dont like the way the time stamps show will this be editable in the admin cp or user cp?
 
I just saw this thread when someone replied, I agree I love this feature, and think it's great someone is finally utilizing features that seem to have been over looked for so long. :-)
 
is it due to this relative timestamps that I cannot format my timestamps as I want them.
am/pm format is pretty confusing to me who is used to 24h clocks :)
 
is it due to this relative timestamps that I cannot format my timestamps as I want them.
am/pm format is pretty confusing to me who is used to 24h clocks :)
You are capable of formatting your timestamps with the other option in that section.
 
most forums let the user control the look on time/date formats.
How many people actually mess with it though? A number of options have been moved to the ACP, clearing up and simplifying the user's experience and UI.

I don't have control over how I view my time, but I don't miss it either. ;)
 
How many people actually mess with it though? A number of options have been moved to the ACP, clearing up and simplifying the user's experience and UI.

I don't have control over how I view my time, but I don't miss it either. ;)

I sometimes do, especially if it's in the default American format. It's confusing for us Europeans.
 
Top Bottom