diff --git a/assets/js/office-hours.js b/assets/js/office-hours.js index 9826ba5..395d7e1 100644 --- a/assets/js/office-hours.js +++ b/assets/js/office-hours.js @@ -25,10 +25,16 @@ function displayTime(elements, time) { var format = el.dataset.format var value; - if(format == 'fromNow') { - value = time.local().fromNow(); + if(el.dataset.hasOwnProperty('utc')) { + time = time.utc() } else { - value = time.local().format(format); + time = time.local() + } + + if(format == 'fromNow') { + value = time.fromNow(); + } else { + value = time.format(format); } el.innerHTML = value; diff --git a/community.html b/community.html index c0a6fc0..ad44844 100644 --- a/community.html +++ b/community.html @@ -47,8 +47,8 @@ redirect_from: {% octicon calendar class:"mr-2" %} Add to Calendar - - + + UTC Probot Office Hours Join us every week to give feedback, ask questions, get help, or just chat about ideas.