hugo-theme-introduction/assets/js/initMoment.js

5 lines
170 B
JavaScript
Raw Normal View History

2018-07-18 15:40:58 +00:00
$(document).ready(function() {
2019-01-13 08:24:53 +00:00
var time = moment().tz("{{ .Site.Params.home.timeZone }}").format("{{ .Site.Params.home.timeFormat }}");
2018-07-29 07:21:19 +00:00
$("#time").html(time);
2018-07-18 15:40:58 +00:00
})