Resolving Timezone Issues
-
Hello, I noticed that you are using the native PHP function
time()to get the current time. However, usingtime()may cause timezone issues, such as UTC+8 and others, which could lead to the “coming_soon” appearing prematurely.I suggest replacing
time()withcurrent_time('timestamp').current_timeis 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)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Resolving Timezone Issues’ is closed to new replies.