Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Tweeted twitter.com/StackWordPress/status/1295737240837074945
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Updated to match cross-posted content
Source Link
Michael
  • 131
  • 2
  • 6

On the "General Settings" page of my WordPress site, it's not displaying the correct UTC and local times (see screenshot below).

enter image description here

The displayed UTC and local times are wrong. It should say that local time is "15:52"

  • I'm running WordPress 4.9.6 and PHP 7.0.30.
  • The default timezone in themy "php.ini" file of the PHP installation is set correctly--when I call the date() and date_default_timezone_get() functions from a standalone PHP script, they output the correct information.
  • The clock on my Windows web server is correct and is set to the correct timezone.
  • The time displays correctlyincorrectly when I call the PHP date()following WordPress function in a standalone PHP script, and incorrectly when I call the function from within a plugin.
  • When I call(it is 4 hours behind what it should be): date_default_timezone_getcurrent_time('Y-m-d H:i') from within a plugin, it returns "UTC" even though my timezone is set to "New York" in WordPress' settings.
  • The above two bullets indicate that it's a WordPress issue.

This thread says the problem is caused by a bad plugin. I actually had that particular plugin installed, but deactivating (and then deleting) the plugin didn’t fix the issue for me.

This thread says it’s due to the server’s timezone definitions being corrupted. It provides instructions on how to fix this for Linux, but not Windows. However, I have other WordPress sites hosted on the same server, and they do not have this issue.

Issue has been cross-posted here: https://wordpress.org/support/topic/timezone-settings-utc-and-local-times-are-incorrect/

On the "General Settings" page of my WordPress site, it's not displaying the correct UTC and local times (see screenshot below).

enter image description here

The displayed UTC and local times are wrong. It should say that local time is "15:52"

  • I'm running WordPress 4.9.6 and PHP 7.0.30
  • The default timezone in the "php.ini" file of the PHP installation is set correctly.
  • The clock on my Windows web server is correct and is set to the correct timezone.
  • The time displays correctly when I call the PHP date() function in a standalone PHP script, and incorrectly when I call the function from within a plugin.
  • When I call date_default_timezone_get() from within a plugin, it returns "UTC" even though my timezone is set to "New York" in WordPress' settings.
  • The above two bullets indicate that it's a WordPress issue.

Issue has been cross-posted here: https://wordpress.org/support/topic/timezone-settings-utc-and-local-times-are-incorrect/

On the "General Settings" page of my WordPress site, it's not displaying the correct UTC and local times (see screenshot below).

enter image description here

The displayed UTC and local times are wrong. It should say that local time is "15:52"

  • I'm running WordPress 4.9.6 and PHP 7.0.30.
  • The default timezone in my "php.ini" file is set correctly--when I call the date() and date_default_timezone_get() functions from a standalone PHP script, they output the correct information.
  • The clock on my Windows web server is correct and is set to the correct timezone.
  • The time displays incorrectly when I call the following WordPress function (it is 4 hours behind what it should be): current_time('Y-m-d H:i').

This thread says the problem is caused by a bad plugin. I actually had that particular plugin installed, but deactivating (and then deleting) the plugin didn’t fix the issue for me.

This thread says it’s due to the server’s timezone definitions being corrupted. It provides instructions on how to fix this for Linux, but not Windows. However, I have other WordPress sites hosted on the same server, and they do not have this issue.

Issue has been cross-posted here: https://wordpress.org/support/topic/timezone-settings-utc-and-local-times-are-incorrect/

Added link to cross-posted forum
Source Link
Michael
  • 131
  • 2
  • 6

On the "General Settings" page of my WordPress site, it's not displaying the correct UTC and local times (see screenshot below).

enter image description here

The displayed UTC and local times are wrong. It should say that local time is "15:52"

  • I'm running WordPress 4.9.6 and PHP 7.0.30
  • The default timezone in the "php.ini" file of the PHP installation is set correctly.
  • The clock on my Windows web server is correct and is set to the correct timezone.
  • The time displays correctly when I call the PHP date() function in a standalone PHP script, and incorrectly when I call the function from within a plugin.
  • When I call date_default_timezone_get() from within a plugin, it returns "UTC" even though my timezone is set to "New York" in WordPress' settings.
  • The above two bullets indicate that it's a WordPress issue.

Issue has been cross-posted here: https://wordpress.org/support/topic/timezone-settings-utc-and-local-times-are-incorrect/

On the "General Settings" page of my WordPress site, it's not displaying the correct UTC and local times (see screenshot below).

enter image description here

The displayed UTC and local times are wrong. It should say that local time is "15:52"

  • I'm running WordPress 4.9.6 and PHP 7.0.30
  • The default timezone in the "php.ini" file of the PHP installation is set correctly.
  • The clock on my Windows web server is correct and is set to the correct timezone.
  • The time displays correctly when I call the PHP date() function in a standalone PHP script, and incorrectly when I call the function from within a plugin.
  • When I call date_default_timezone_get() from within a plugin, it returns "UTC" even though my timezone is set to "New York" in WordPress' settings.
  • The above two bullets indicate that it's a WordPress issue.

On the "General Settings" page of my WordPress site, it's not displaying the correct UTC and local times (see screenshot below).

enter image description here

The displayed UTC and local times are wrong. It should say that local time is "15:52"

  • I'm running WordPress 4.9.6 and PHP 7.0.30
  • The default timezone in the "php.ini" file of the PHP installation is set correctly.
  • The clock on my Windows web server is correct and is set to the correct timezone.
  • The time displays correctly when I call the PHP date() function in a standalone PHP script, and incorrectly when I call the function from within a plugin.
  • When I call date_default_timezone_get() from within a plugin, it returns "UTC" even though my timezone is set to "New York" in WordPress' settings.
  • The above two bullets indicate that it's a WordPress issue.

Issue has been cross-posted here: https://wordpress.org/support/topic/timezone-settings-utc-and-local-times-are-incorrect/

Added more details
Source Link
Michael
  • 131
  • 2
  • 6

On the "General Settings" page of my WordPress site, it's not displaying the correct UTC and local times (see screenshot below).

enter image description here

The displayed UTC and local times are wrong. It should say that local time is "15:52"

  • I'm running WordPress 4.9.6 and PHP 7.0.30
  • The default timezone in the "php.ini" file of the PHP installation is set correctly.
  • The clock on my Windows web server is correct and is set to the correct timezone.
  • The time displays correctlycorrectly when I call the PHP date() function in a standalone PHP script, which leads meand incorrectly when I call the function from within a plugin.
  • When I call date_default_timezone_get() from within a plugin, it returns "UTC" even though my timezone is set to believe"New York" in WordPress' settings.
  • The above two bullets indicate that it's a WordPress/plugin problem issue.

On the "General Settings" page of my WordPress site, it's not displaying the correct UTC and local times (see screenshot below).

enter image description here

The displayed UTC and local times are wrong. It should say that local time is "15:52"

  • I'm running WordPress 4.9.6 and PHP 7.0.30
  • The default timezone in the "php.ini" file of the PHP installation is set correctly.
  • The clock on my Windows web server is correct and is set to the correct timezone.
  • The time displays correctly when I call the PHP date() function in a standalone PHP script, which leads me to believe it's a WordPress/plugin problem.

On the "General Settings" page of my WordPress site, it's not displaying the correct UTC and local times (see screenshot below).

enter image description here

The displayed UTC and local times are wrong. It should say that local time is "15:52"

  • I'm running WordPress 4.9.6 and PHP 7.0.30
  • The default timezone in the "php.ini" file of the PHP installation is set correctly.
  • The clock on my Windows web server is correct and is set to the correct timezone.
  • The time displays correctly when I call the PHP date() function in a standalone PHP script, and incorrectly when I call the function from within a plugin.
  • When I call date_default_timezone_get() from within a plugin, it returns "UTC" even though my timezone is set to "New York" in WordPress' settings.
  • The above two bullets indicate that it's a WordPress issue.
added 47 characters in body
Source Link
Michael
  • 131
  • 2
  • 6
Loading
Source Link
Michael
  • 131
  • 2
  • 6
Loading