hugo-theme-introduction/assets/js/initMoment.js
2019-01-13 09:24:53 +01:00

4 lines
170 B
JavaScript

$(document).ready(function() {
var time = moment().tz("{{ .Site.Params.home.timeZone }}").format("{{ .Site.Params.home.timeFormat }}");
$("#time").html(time);
})