Exact date in tooltip

Development related discussion.
Post Reply
User avatar
Advanced Member
Posts: 151
Joined: Mon Mar 22, 2010 10:28 am

Exact date in tooltip

Post by arturo182 » Thu Jul 19, 2012 8:13 pm

Github has this cool feature when you hover a date like "10 hours ago" with your cursor you get a tooltip (from the browser) with the exact time of the event.

I understand that github does it in a different way: they have <time> tags and a javascript file that replaces them with the "*x* ago" text but here you can just create an anchor element with the "title" attribute.

You do not have the required permissions to view the files attached to this post.
Last edited by arturo182 on Thu Jul 19, 2012 10:15 pm, edited 1 time in total.
Traq, yo!

User avatar
Advanced Member
Posts: 668
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Exact date in tooltip

Post by Jack » Thu Jul 19, 2012 8:38 pm

Will get started on this soon. However the date shown will be of the timezone PHP uses, until timezone support has been added, possibly in 3.1 or 3.2.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests