Title: Resolving Timezone Issues
Last modified: August 4, 2023

---

# Resolving Timezone Issues

 *  Resolved [fourjay](https://wordpress.org/support/users/fourjay/)
 * (@fourjay)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/resolving-timezone-issues/)
 * Hello, I noticed that you are using the native PHP function `time()` to get the
   current time. However, using `time()` may cause timezone issues, such as UTC+
   8 and others, which could lead to the “coming_soon” appearing prematurely.
 * I suggest replacing `time()` with `current_time('timestamp')`. `current_time`
   is a WordPress function that retrieves the current time based on the timezone
   settings configured in WordPress. This should help resolve any timezone-related
   problems.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/resolving-timezone-issues/#post-16947093)
 * Thank you so much, I have just released another version with this improvement.
   Can you please try the latest version and confirm?
 *  Thread Starter [fourjay](https://wordpress.org/support/users/fourjay/)
 * (@fourjay)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/resolving-timezone-issues/#post-16972920)
 * Thank you, this version has resolved the issue with the time zone.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Resolving Timezone Issues’ is closed to new replies.

 * ![](https://ps.w.org/woo-coming-soon/assets/icon-256x256.png?rev=3387917)
 * [Products Coming Soon for WooCommerce](https://wordpress.org/plugins/woo-coming-soon/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-coming-soon/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-coming-soon/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-coming-soon/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-coming-soon/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-coming-soon/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [fourjay](https://wordpress.org/support/users/fourjay/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/resolving-timezone-issues/#post-16972920)
 * Status: resolved