jQuery snippet to display a timestamp in local time zone and language
$(function() {
$.each($('.timestamp'), function(i, v) {
ts = $(v)
ts.text((new Date(ts.text())).toLocaleString());
})
});
Return UTC timestamps from your server. Apply the timestamp
class to any element containing them to format it on the frontend.