thelounge/client/js/libs/handlebars/localedate.js

6 lines
121 B
JavaScript
Raw Normal View History

2016-10-03 18:03:19 +00:00
"use strict";
Handlebars.registerHelper("localedate", function(time) {
return new Date(time).toLocaleDateString();
});