Smart Dates

Posted by Dave Minor Tue, 08 Aug 2006 18:59:00 GMT

Dear LazyWeb,

The new trend in blogs is to have relative timestamps like “posted about 3 hours ago.” It’s cute—whatever.

I just noticed while working on a Typo theme that when you view the source, the real timestamp is plugged in! How do it know??

I assume there is some javascript code doing the cutsy stamp after the page loads, but I don’t see any calls for that to happen.

I think it’s cool and I want to know the details behind it, but I’m too behind to go looking right now. If noone enlightens me, maybe this will remind me to come back and dig into the code later.

UPDATE: ok, I found the call to show_dates_as_local_time() which I assume takes care of that.

Posted in , ,  | no comments

Comments

Comments are disabled