hardlounge/client/js/libs/handlebars/localetime.js
2016-10-01 02:46:19 -04:00

6 lines
117 B
JavaScript

"use strict";
Handlebars.registerHelper("localetime", function(time) {
return new Date(time).toLocaleString();
});