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

5 lines
142 B
JavaScript
Raw Normal View History

2018-07-18 15:40:58 +00:00
$(document).ready(function() {
2018-07-20 12:45:36 +00:00
var time = moment().tz("{{ .Site.Params.home.timeZone }}").format("h:mm A");
2018-07-18 15:40:58 +00:00
$('#time').html(time);
})