Title: Countdown &#8211; wrong time
Last modified: March 27, 2019

---

# Countdown – wrong time

 *  [kuririn1](https://wordpress.org/support/users/kuririn1/)
 * (@kuririn1)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/countdown-wrong-time/)
 * 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](https://wordpress.org/support/users/kuririn1/)
 * (@kuririn1)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/countdown-wrong-time/#post-11363756)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/ultra-blocks-free-by-fest_7ab4d6.
   svg)
 * [UltraBlocks - Advanced Blocks for WP Gutenberg](https://wordpress.org/plugins/ultra-blocks-free-by-fest/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultra-blocks-free-by-fest/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultra-blocks-free-by-fest/)
 * [Active Topics](https://wordpress.org/support/plugin/ultra-blocks-free-by-fest/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultra-blocks-free-by-fest/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultra-blocks-free-by-fest/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [kuririn1](https://wordpress.org/support/users/kuririn1/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/countdown-wrong-time/#post-11363756)
 * Status: not resolved