Skip to content

Commit

Permalink
use the users browser to localise the 'last updated' field
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwilkin committed Sep 1, 2009
1 parent fced3af commit 913652c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions public/js/trends.js
@@ -1,3 +1,13 @@
/**
* use the users browser to localise the 'last updated' field from UTC
*/
function localiseTimestamp(){
var d = new Date($('#trends span').attr('title'));
var pd = d.getHours() + ':' + d.getMinutes();
$('#trends span').html(pd);
}


/** /**
* jCarousel * jCarousel
*/ */
Expand Down Expand Up @@ -28,5 +38,6 @@ function initCarousel(){




$(document).ready(function(){ $(document).ready(function(){
localiseTimestamp();
initCarousel(); initCarousel();
}); });

0 comments on commit 913652c

Please sign in to comment.