• Hello,

    The countdown timer gives a wrong time. It’s different from my local machine time and PHP time.

    It’s something wrong with calculating hours because it’s showing 3 hours for this date:
    2019-03-27T18:59:00
    and
    12 hours for one hour later:
    2019-03-27T19:59:00

Viewing 1 replies (of 1 total)
  • Thread Starter kuririn1

    (@kuririn1)

    You forget one zero on this line:
    hours: Math.floor(remainTimestamp / (1000 * 60 * 6))

    it should be:
    hours: Math.floor(remainTimestamp / (1000 * 60 * 60)),

    it’s in the file:
    ultra-blocks-free-by-fest/blocks/countdown/utils.js

Viewing 1 replies (of 1 total)
  • The topic ‘Countdown – wrong time’ is closed to new replies.