Merge pull request #27 from KrishnaMoorthy12/fix-theme-clock

fixed theme clock showing 0:00 pm for 12 noon
pull/31/head
Brad Traversy 4 years ago committed by GitHub
commit 76203b0fa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,7 +25,7 @@ function setTime() {
const day = time.getDay()
const date = time.getDate()
const hours = time.getHours()
const hoursForClock = hours % 12
const hoursForClock = hours >= 13 ? hours % 12 : hours;
const minutes = time.getMinutes()
const seconds = time.getSeconds()
const ampm = hours >= 12 ? 'PM' : 'AM'

Loading…
Cancel
Save