parse datetime using UTC parser
This commit is contained in:
parent
569b186cc6
commit
683b41d07c
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ $(function(){
|
||||||
function updateTimestamps() {
|
function updateTimestamps() {
|
||||||
$(".permalink time").each(function() {
|
$(".permalink time").each(function() {
|
||||||
var absolute = $(this).attr('datetime');
|
var absolute = $(this).attr('datetime');
|
||||||
var formatted = moment(absolute).fromNow();
|
var formatted = moment.utc(absolute).fromNow();
|
||||||
$(this).text(formatted);
|
$(this).text(formatted);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue